From c968c4f89efb80ffaf341f99f38935c5aa4f23fc Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Tue, 9 Dec 2008 21:43:33 +0000 Subject: [PATCH] Fix bug in lsearch(): uninitialized counter --- src/wiz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wiz.c b/src/wiz.c index 7334403..31b79c4 100644 --- a/src/wiz.c +++ b/src/wiz.c @@ -1977,7 +1977,7 @@ raw_search(dbref player, const char *owner, int nargs, const char **args, size_t nresults = 0; int n; struct search_spec spec; - int count; + int count = 0; /* make sure player has money to do the search */ if (!payfor(player, FIND_COST)) { -- 2.30.2