]> granicus.if.org Git - nethack/commitdiff
warning fix
authornhmall <nhmall@nethack.org>
Wed, 11 May 2022 01:10:02 +0000 (21:10 -0400)
committernhmall <nhmall@nethack.org>
Wed, 11 May 2022 01:10:02 +0000 (21:10 -0400)
src/apply.c

index 24bdb93aaeddeb1266f26574474de1e3525955fd..80d15693925d1663b4f0aa7be28d8473f7d391d9 100644 (file)
@@ -492,7 +492,7 @@ static void
 magic_whistled(struct obj *obj)
 {
     struct monst *mtmp, *nextmon;
-    char buf[BUFSZ], *mnam,
+    char buf[BUFSZ], *mnam = 0,
          shiftbuf[BUFSZ + sizeof "shifts location"],
          appearbuf[BUFSZ + sizeof "appears"],
          disappearbuf[BUFSZ + sizeof "disappears"];