diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2010-12-05 21:43:45 +0100 |
---|---|---|
committer | Sebastian Herbszt <herbszt@gmx.de> | 2010-12-05 21:43:45 +0100 |
commit | 77dcc0710a788dcdb866d6b0b76057aaadf36ec7 (patch) | |
tree | 7d288f1fd31acfd27895cd18889050084fe2a22b /com32/gfxboot/gfxboot.c | |
parent | 5f0ec9a7a78606f98965906b808ead79428ea080 (diff) | |
download | syslinux-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.c | 5 |
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++; |