]> granicus.if.org Git - nethack/commitdiff
build fix for vs2019
authornhmall <nhmall@nethack.org>
Tue, 3 Mar 2020 23:34:27 +0000 (18:34 -0500)
committernhmall <nhmall@nethack.org>
Tue, 3 Mar 2020 23:34:27 +0000 (18:34 -0500)
src\nhlsel.c(604) : error C4703: potentially uninitialized local pointer variable 'mf' used

src/nhlsel.c

index 9a874efb4e3bfe2b0ad55463787dcc88ae7de376..15ab6e5394e03a79d74ce2d6418b76ac9791127d 100644 (file)
@@ -575,7 +575,7 @@ lua_State *L;
 {
     int argc = lua_gettop(L);
     struct selectionvar *sel = (struct selectionvar *) 0;
-    struct mapfragment *mf;
+    struct mapfragment *mf = (struct mapfragment *) 0;
     int x, y;
 
     if (argc == 1) {