]> granicus.if.org Git - nethack/commitdiff
Fix Valgrind complaint of uninitialized memory
authorPasi Kallinen <paxed@alt.org>
Tue, 24 Jan 2017 18:56:15 +0000 (20:56 +0200)
committerPasi Kallinen <paxed@alt.org>
Tue, 24 Jan 2017 18:56:15 +0000 (20:56 +0200)
win/tty/wintty.c

index adec33c22f390c35f5fa78224fa79f0c112465fe..3ac407a5615d1c7ef895d5a902bfadb61fd4ef41 100644 (file)
@@ -478,7 +478,7 @@ makepicks:
                     setup_rolemenu(win, TRUE, RACE, GEND, ALGN);
                     /* add miscellaneous menu entries */
                     role_menu_extra(ROLE_RANDOM, win, TRUE);
-                    any.a_int = 0; /* separator, not a choice */
+                    any = zeroany; /* separator, not a choice */
                     add_menu(win, NO_GLYPH, &any, 0, 0, ATR_NONE, "",
                              MENU_UNSELECTED);
                     role_menu_extra(RS_RACE, win, FALSE);