diff options
-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++; |