[tor-commits] [tor/master] Fix another uninitialized var warning from GCC
nickm at torproject.org
nickm at torproject.org
Mon Dec 17 20:49:21 UTC 2012
commit 88d7312ff29cda982f928caf3ddab4df189b245c
Author: Nick Mathewson <nickm at torproject.org>
Date: Thu Dec 6 12:26:10 2012 -0500
Fix another uninitialized var warning from GCC
---
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 6fff70b..65d1be5 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);
More information about the tor-commits
mailing list