summaryrefslogtreecommitdiff
path: root/com32/gfxboot/gfxboot.c
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2010-12-05 21:43:45 +0100
committerSebastian Herbszt <herbszt@gmx.de>2010-12-05 21:43:45 +0100
commit77dcc0710a788dcdb866d6b0b76057aaadf36ec7 (patch)
tree7d288f1fd31acfd27895cd18889050084fe2a22b /com32/gfxboot/gfxboot.c
parent5f0ec9a7a78606f98965906b808ead79428ea080 (diff)
downloadsyslinux-77dcc0710a788dcdb866d6b0b76057aaadf36ec7.tar.gz
gfxboot: require LABEL keywords
Require LABEL keywords in config file. Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
Diffstat (limited to 'com32/gfxboot/gfxboot.c')
-rw-r--r--com32/gfxboot/gfxboot.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/com32/gfxboot/gfxboot.c b/com32/gfxboot/gfxboot.c
index cea43b42..552728fd 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++;