initialize counter variables to fix core dumpswhen reading config file -
patch provided by M. Dolze
This commit is contained in:
1 parent
1f523c6438
commit
cf0e82ddf7
1 file changed
+2
@@ -34,6 +34,8 @@ Menu * menu_read( char * menu_id, char * progname )
|
||||
report( RPT_DEBUG, "Reading menu: [%s]", menu_id );
|
||||
|
||||
menu = malloc( sizeof(Menu) );
|
||||
menu->num_menucmds = 0;
|
||||
menu->num_submenus = 0;
|
||||
|
||||
/* Read the commands */
|
||||
str = "";
|
||||
|
||||
Reference in new issue
Block a user