Fix bug in lsearch(): uninitialized counter
authorAri Johnson <ari@theari.com>
Tue, 9 Dec 2008 21:43:33 +0000 (21:43 +0000)
committerAri Johnson <ari@theari.com>
Tue, 9 Dec 2008 21:43:33 +0000 (21:43 +0000)
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)) {