diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-12-17 11:14:12 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-12-17 11:14:12 -0500 |
commit | 3874e74b49f7f8a7d957e6780679a4aebaddf90a (patch) | |
tree | 3e5ac8771fa58f9691af5eb8d9e6f96b532ba80c | |
parent | b1ff8daeb521d1645bc35ffd7191599b7169c2bb (diff) | |
download | tor-3874e74b49f7f8a7d957e6780679a4aebaddf90a.tar tor-3874e74b49f7f8a7d957e6780679a4aebaddf90a.tar.gz |
Avoid a 'may be used uninitialized' warning
Fixes bug 7746; bug not in any released version of Tor.
-rw-r--r-- | src/or/routerlist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 6fff70b6b..972d4513d 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); |