]> granicus.if.org Git - nethack/commitdiff
Fix uninitialized variable
authorPasi Kallinen <paxed@alt.org>
Thu, 29 Oct 2015 18:26:25 +0000 (20:26 +0200)
committerPasi Kallinen <paxed@alt.org>
Thu, 29 Oct 2015 18:26:25 +0000 (20:26 +0200)
src/options.c

index a16b0d220c4be4d9b629be54ef128f35d266fd99..7ec4e637a5dec18b38e48244862a6928ff408c90 100644 (file)
@@ -3772,6 +3772,7 @@ boolean setinitial, setfromfile;
         menu_item *style_pick = (menu_item *) 0;
         tmpwin = create_nhwindow(NHW_MENU);
         start_menu(tmpwin);
+        any = zeroany;
         for (i = 0; i < SIZE(menutype); i++) {
             style_name = menutype[i];
             /* note: separate `style_name' variable used