From: nhmall Date: Wed, 11 May 2022 01:10:02 +0000 (-0400) Subject: warning fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d486270ec922ec2829cef673bbef6dce121b7b1c;p=nethack warning fix --- diff --git a/src/apply.c b/src/apply.c index 24bdb93aa..80d156939 100644 --- a/src/apply.c +++ b/src/apply.c @@ -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"];