[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] don't display menu when there's nothing in it
From: |
Yoshinori K. Okuji |
Subject: |
Re: [PATCH] don't display menu when there's nothing in it |
Date: |
Sat, 2 Feb 2008 13:20:49 +0100 |
User-agent: |
KMail/1.9.4 |
On Friday 01 February 2008 21:02, Robert Millan wrote:
> normal.mod seems to insist in displaying a menu even if grub.cfg didn't
> define any menu entries. This seems to be due to a bogus check (for
> menu instead of menu->size).
It is not completely bogus, since MENU can be NULL. Probably what you want is:
if (menu && menu->size)
Okuji