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