]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix another uninitialized var warning from GCC
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Dec 2012 17:26:10 +0000 (12:26 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2012 19:50:05 +0000 (14:50 -0500)
src/or/routerlist.c

index 6fff70b6b2b416c3663ab9a2606fda6ee8200d16..65d1be5032529f3233a818702ec7d44c331b90b7 100644 (file)
@@ -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);