[syslinux] No sub-menus in complex.c32

Sebastian Herbszt herbszt at gmx.de
Fri Jun 20 12:26:18 PDT 2008


From: "Michael Madore" <michael.madore at gmail.com>
Sent: Friday, June 20, 2008 5:08 AM
> I commented out the call to fix_submenus() in menu/libmenu/menu.c and
> now my menu works.  This is with 3.20, so I still have to try with
> 3.63.  I haven't looked at fix_submenus() yet to see why it breaks
> submenus.

I think it breaks because fix_submenus calls find_menu_num which assumes
a menu got a name. If add_menu is used name is NULL. It is not NULL if
add_named_menu is used. complex.c is the only file using add_menu. All
other files (simple.c, test.c and test2.c) are using add_named_menu.

- Sebastian




More information about the Syslinux mailing list