Fix bug in lsearch(): uninitialized counter
authorAri Johnson <ari@theari.com>
Tue, 9 Dec 2008 21:43:33 +0000 (21:43 +0000)
committerCobraMUSH <cobramush@nveid.com>
Tue, 4 Mar 2008 21:22:14 +0000 (21:22 +0000)
(cherry picked from commit c968c4f89efb80ffaf341f99f38935c5aa4f23fc)

src/wiz.c

index 73344030bf7aed3a2cd22825c70c1eff4a60b583..31b79c475f8d6a4cc319951ebed5d4f6766139ad 100644 (file)
--- 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)) {