From: Nick Mathewson Date: Sat, 22 Nov 2008 02:19:14 +0000 (+0000) Subject: Resolve a warning under gcc 4.4 trunk. X-Git-Tag: tor-0.2.1.8-alpha~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=07a08d933d82db680260186dd20e0c09defa5f13;p=thirdparty%2Ftor.git Resolve a warning under gcc 4.4 trunk. svn:r17357 --- diff --git a/src/common/container.c b/src/common/container.c index 060615d1c3..bf2ced2e2e 100644 --- a/src/common/container.c +++ b/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; }