From: Ari Johnson Date: Tue, 9 Dec 2008 21:43:33 +0000 (+0000) Subject: Fix bug in lsearch(): uninitialized counter X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=c968c4f89efb80ffaf341f99f38935c5aa4f23fc;p=cobramush.git Fix bug in lsearch(): uninitialized counter --- 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)) {