From c0686d1795bbd93af82ba7f56c058b13c5035521 Mon Sep 17 00:00:00 2001 From: nhmall Date: Tue, 30 Sep 2025 12:41:55 -0400 Subject: [PATCH] clear pair of warnings re: not initialized --- src/hack.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hack.c b/src/hack.c index 1f0873a79..89c153746 100644 --- a/src/hack.c +++ b/src/hack.c @@ -104,7 +104,7 @@ obj_to_any(struct obj *obj) boolean revive_nasty(coordxy x, coordxy y, const char *msg) { - struct obj *otmp, *otmp2; + struct obj *otmp = 0, *otmp2 = 0; struct monst *mtmp; coord cc; boolean revived = FALSE; @@ -3379,7 +3379,7 @@ char * in_rooms(coordxy x, coordxy y, int typewanted) { static char buf[5]; - char rno, *ptr = &buf[4]; + char rno = 0, *ptr = &buf[4]; int typefound, min_x, min_y, max_x, max_y_offset, step; struct rm *lev;