[syslinux:master] gfxboot: require LABEL keywords
syslinux-bot for Sebastian Herbszt
herbszt at gmx.de
Mon Dec 6 16:00:32 PST 2010
Commit-ID: 77dcc0710a788dcdb866d6b0b76057aaadf36ec7
Gitweb: http://syslinux.zytor.com/commit/77dcc0710a788dcdb866d6b0b76057aaadf36ec7
Author: Sebastian Herbszt <herbszt at gmx.de>
AuthorDate: Sun, 5 Dec 2010 21:43:45 +0100
Committer: Sebastian Herbszt <herbszt at gmx.de>
CommitDate: Sun, 5 Dec 2010 21:43:45 +0100
gfxboot: require LABEL keywords
Require LABEL keywords in config file.
Signed-off-by: Sebastian Herbszt <herbszt at gmx.de>
---
com32/gfxboot/gfxboot.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index cea43b4..552728f 100644
--- a/com32/gfxboot/gfxboot.c
+++ b/com32/gfxboot/gfxboot.c
@@ -441,6 +441,11 @@ do_include:
if (!top_level)
return 0;
+ if (gfx_menu.entries == 0) {
+ printf("No LABEL keywords found.\n");
+ return 1;
+ }
+
// final '\0'
gfx_menu.label_size++;
gfx_menu.arg_size++;
More information about the Syslinux-commits
mailing list