From 56f6c8fa302a7c9824a3b028697d1450062f0da3 Mon Sep 17 00:00:00 2001 From: he Date: Thu, 9 Jun 2005 09:36:19 +0000 Subject: Add an initialization to placate -Wuninitialized. Marked with XXXGCC for pmppc (found while compiling for it). --- rogue/monster.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'rogue') 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))) { -- cgit v1.2.3-56-ge451