gfxboot: require LABEL keywords
authorSebastian Herbszt <herbszt@gmx.de>
Sun, 5 Dec 2010 20:43:45 +0000 (21:43 +0100)
committerSebastian Herbszt <herbszt@gmx.de>
Sun, 5 Dec 2010 20:43:45 +0000 (21:43 +0100)
Require LABEL keywords in config file.

Signed-off-by: Sebastian Herbszt <herbszt@gmx.de>
com32/gfxboot/gfxboot.c

index cea43b4..552728f 100644 (file)
@@ -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++;