mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Avoid a 'may be used uninitialized' warning
Fixes bug 7746; bug not in any released version of Tor.
This commit is contained in:
parent
b1ff8daeb5
commit
3874e74b49
@ -1285,7 +1285,7 @@ router_pick_trusteddirserver_impl(const smartlist_t *sourcelist,
|
|||||||
smartlist_t *direct, *tunnel;
|
smartlist_t *direct, *tunnel;
|
||||||
smartlist_t *overloaded_direct, *overloaded_tunnel;
|
smartlist_t *overloaded_direct, *overloaded_tunnel;
|
||||||
const routerinfo_t *me = router_get_my_routerinfo();
|
const routerinfo_t *me = router_get_my_routerinfo();
|
||||||
const routerstatus_t *result;
|
const routerstatus_t *result = NULL;
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
const int requireother = ! (flags & PDS_ALLOW_SELF);
|
const int requireother = ! (flags & PDS_ALLOW_SELF);
|
||||||
const int fascistfirewall = ! (flags & PDS_IGNORE_FASCISTFIREWALL);
|
const int fascistfirewall = ! (flags & PDS_IGNORE_FASCISTFIREWALL);
|
||||||
|
Loading…
Reference in New Issue
Block a user