From c987a3dc2f51a3c866579cc0050a570d693024d0 Mon Sep 17 00:00:00 2001 From: Bart House Date: Tue, 20 Nov 2018 10:30:11 -0800 Subject: [PATCH] Added initialization of locals in create_room() to quite compiler warnings. --- src/sp_lev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sp_lev.c b/src/sp_lev.c index 52fe277ec..6ebf7e9df 100644 --- a/src/sp_lev.c +++ b/src/sp_lev.c @@ -1130,7 +1130,7 @@ xchar w, h; xchar xal, yal; xchar rtype, rlit; { - xchar xabs, yabs; + xchar xabs = 0, yabs = 0; int wtmp, htmp, xaltmp, yaltmp, xtmp, ytmp; NhRect *r1 = 0, r2; int trycnt = 0; @@ -2000,7 +2000,7 @@ struct mkroom *croom; * other contents, but that can be specified as an empty container. */ if (o->id == STATUE && Is_medusa_level(&u.uz) && o->corpsenm == NON_PM) { - struct monst *was; + struct monst *was = NULL; struct obj *obj; int wastyp; int i = 0; /* prevent endless loop in case makemon always fails */