]> granicus.if.org Git - nethack/commitdiff
Xcode warning of possible uninitialized variables
authornhmall <nhmall@nethack.org>
Fri, 10 Apr 2020 04:29:51 +0000 (00:29 -0400)
committernhmall <nhmall@nethack.org>
Fri, 10 Apr 2020 04:29:51 +0000 (00:29 -0400)
src/priest.c

index 50ac0127df9dd3782e03aa31748bd4d49385b5e3..1b5bd38240963f006fc23048aa706672a7bf13f3 100644 (file)
@@ -232,7 +232,7 @@ boolean sanctum; /* is it the seat of the high priest? */
     struct monst *priest;
     struct obj *otmp;
     int cnt;
-    int px, py, i, si = rn2(8);
+    int px = 0, py = 0, i, si = rn2(8);
     struct permonst *prim = &mons[sanctum ? PM_HIGH_PRIEST : PM_ALIGNED_PRIEST];
 
     for (i = 0; i < 8; i++) {