]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Avoid a 'may be used uninitialized' warning
authorNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2012 16:14:12 +0000 (11:14 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 17 Dec 2012 16:14:12 +0000 (11:14 -0500)
Fixes bug 7746; bug not in any released version of Tor.

src/or/routerlist.c

index 6fff70b6b2b416c3663ab9a2606fda6ee8200d16..972d4513dd26a17a036a2c21e33132d9ffbeb3f7 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);