diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-08 23:24:03 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-08 23:24:03 +0000 |
commit | ec54857870c9d643cd2631403af46bcf174b04e0 (patch) | |
tree | bc7b975b646a53c19a52107c97afb2b8d527b6a3 /src | |
parent | 61e729a615e8563c2f13e2ba464bbfa211831af5 (diff) | |
download | tor-ec54857870c9d643cd2631403af46bcf174b04e0.tar.gz tor-ec54857870c9d643cd2631403af46bcf174b04e0.zip |
r11732@catbus: nickm | 2007-02-08 18:12:54 -0500
Fix an "uninitialized variable" warning.
svn:r9536
Diffstat (limited to 'src')
-rw-r--r-- | src/or/routerlist.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/routerlist.c b/src/or/routerlist.c index 541cbc76dc..dc98a1abb6 100644 --- a/src/or/routerlist.c +++ b/src/or/routerlist.c @@ -955,7 +955,7 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, int for_exit, int statuses) routerinfo_t *router; routerstatus_t *status; int32_t *bandwidths; - uint32_t this_bw, is_exit; + int is_exit; uint64_t total_nonexit_bw = 0, total_exit_bw = 0, total_bw = 0; uint64_t rand_bw, tmp; double exit_weight; @@ -972,6 +972,7 @@ smartlist_choose_by_bandwidth(smartlist_t *sl, int for_exit, int statuses) /* first, learn what bandwidth we think i has */ int is_known = 1; int32_t flags = 0; + uint32_t this_bw = 0; if (statuses) { /* need to extract router info */ status = smartlist_get(sl, i); |