summaryrefslogtreecommitdiffstats
path: root/rogue
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2005-06-09 09:36:19 +0000
committerhe <he@NetBSD.org>2005-06-09 09:36:19 +0000
commit56f6c8fa302a7c9824a3b028697d1450062f0da3 (patch)
tree0a72991b2a7fea1bc740f3ff3cd240fbfe852769 /rogue
parent2cce72c8f0fe84df3d2feccbd80d2f06e8d41ea6 (diff)
downloadbsdgames-darwin-56f6c8fa302a7c9824a3b028697d1450062f0da3.tar.gz
bsdgames-darwin-56f6c8fa302a7c9824a3b028697d1450062f0da3.tar.zst
bsdgames-darwin-56f6c8fa302a7c9824a3b028697d1450062f0da3.zip
Add an initialization to placate -Wuninitialized.
Marked with XXXGCC for pmppc (found while compiling for it).
Diffstat (limited to 'rogue')
-rw-r--r--rogue/monster.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/rogue/monster.c b/rogue/monster.c
index 2bcc25d4..885b103e 100644
--- a/rogue/monster.c
+++ b/rogue/monster.c
@@ -1,4 +1,4 @@
-/* $NetBSD: monster.c,v 1.8 2003/08/07 09:37:38 agc Exp $ */
+/* $NetBSD: monster.c,v 1.9 2005/06/09 09:36:19 he Exp $ */
/*
* Copyright (c) 1988, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)monster.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: monster.c,v 1.8 2003/08/07 09:37:38 agc Exp $");
+__RCSID("$NetBSD: monster.c,v 1.9 2005/06/09 09:36:19 he Exp $");
#endif
#endif /* not lint */
@@ -629,6 +629,8 @@ wanderer()
short row, col, i;
boolean found = 0;
+ monster = NULL; /* XXXGCC -Wuninitialized [pmppc] */
+
for (i = 0; ((i < 15) && (!found)); i++) {
monster = gr_monster((object *) 0, 0);
if (!(monster->m_flags & (WAKENS | WANDERS))) {