initialize counter variables to fix core dumpswhen reading config file -

patch provided by M. Dolze
This commit is contained in:
marschap
2006-02-17 18:47:34 +00:00
parent 1f523c6438
commit cf0e82ddf7
+2
View File
@@ -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 = "";