]> granicus.if.org Git - nethack/commitdiff
Add missing variable init
authorPasi Kallinen <paxed@alt.org>
Sun, 10 Jan 2016 08:09:56 +0000 (10:09 +0200)
committerPasi Kallinen <paxed@alt.org>
Sun, 10 Jan 2016 08:09:56 +0000 (10:09 +0200)
src/wizard.c

index 830aa0a60e1156ff0eaf94f20e0ace374377b6d2..57d4d6cbeb44abd5486794b1d97adc84a810fa6f 100644 (file)
@@ -348,7 +348,7 @@ tactics(mtmp)
 register struct monst *mtmp;
 {
     unsigned long strat = strategy(mtmp);
-    xchar sx, sy;
+    xchar sx = 0, sy = 0;
 
     mtmp->mstrategy =
         (mtmp->mstrategy & (STRAT_WAITMASK | STRAT_APPEARMSG)) | strat;