From: Nick Mathewson Date: Thu, 6 Dec 2012 17:26:10 +0000 (-0500) Subject: Fix another uninitialized var warning from GCC X-Git-Tag: tor-0.2.4.7-alpha~6^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=88d7312ff29cda982f928caf3ddab4df189b245c;p=thirdparty%2Ftor.git Fix another uninitialized var warning from GCC --- diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 6fff70b6b2..65d1be5032 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -1285,7 +1285,7 @@ router_pick_trusteddirserver_impl(const smartlist_t *sourcelist, smartlist_t *direct, *tunnel; smartlist_t *overloaded_direct, *overloaded_tunnel; const routerinfo_t *me = router_get_my_routerinfo(); - const routerstatus_t *result; + const routerstatus_t *result=NULL; time_t now = time(NULL); const int requireother = ! (flags & PDS_ALLOW_SELF); const int fascistfirewall = ! (flags & PDS_IGNORE_FASCISTFIREWALL);