]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Resolve a warning under gcc 4.4 trunk.
authorNick Mathewson <nickm@torproject.org>
Sat, 22 Nov 2008 02:19:14 +0000 (02:19 +0000)
committerNick Mathewson <nickm@torproject.org>
Sat, 22 Nov 2008 02:19:14 +0000 (02:19 +0000)
svn:r17357

src/common/container.c

index 060615d1c3792e2207570f31577d1bd2da9a3300..bf2ced2e2ec73bb923267bc8d5ae3134149dd71b 100644 (file)
@@ -494,7 +494,7 @@ void *
 smartlist_bsearch(smartlist_t *sl, const void *key,
                   int (*compare)(const void *key, const void **member))
 {
-  int found, idx;
+  int found=0, idx;
   idx = smartlist_bsearch_idx(sl, key, compare, &found);
   return found ? smartlist_get(sl, idx) : NULL;
 }