[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r17357: {tor} Resolve a warning under gcc 4.4 trunk. (tor/trunk/src/common)



Author: nickm
Date: 2008-11-21 21:19:14 -0500 (Fri, 21 Nov 2008)
New Revision: 17357

Modified:
   tor/trunk/src/common/container.c
Log:
Resolve a warning under gcc 4.4 trunk.

Modified: tor/trunk/src/common/container.c
===================================================================
--- tor/trunk/src/common/container.c	2008-11-21 23:05:18 UTC (rev 17356)
+++ tor/trunk/src/common/container.c	2008-11-22 02:19:14 UTC (rev 17357)
@@ -494,7 +494,7 @@
 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;
 }