Преглед на файлове

Resolve a warning under gcc 4.4 trunk.

svn:r17357
Nick Mathewson преди 15 години
родител
ревизия
07a08d933d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/common/container.c

+ 1 - 1
src/common/container.c

@@ -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;
 }