[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9536: Fix an "uninitialized variable" warning. (in tor/trunk: . src/or)
Author: nickm
Date: 2007-02-08 18:24:03 -0500 (Thu, 08 Feb 2007)
New Revision: 9536
Modified:
tor/trunk/
tor/trunk/src/or/routerlist.c
Log:
r11732@catbus: nickm | 2007-02-08 18:12:54 -0500
Fix an "uninitialized variable" warning.
Property changes on: tor/trunk
___________________________________________________________________
svk:merge ticket from /tor/trunk [r11732] on 8246c3cf-6607-4228-993b-4d95d33730f1
Modified: tor/trunk/src/or/routerlist.c
===================================================================
--- tor/trunk/src/or/routerlist.c 2007-02-08 22:23:54 UTC (rev 9535)
+++ tor/trunk/src/or/routerlist.c 2007-02-08 23:24:03 UTC (rev 9536)
@@ -955,7 +955,7 @@
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 @@
/* 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);