diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-02-19 15:00:08 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-02-19 15:00:08 -0500 |
commit | 804be10b096de6e6a7204cf3268857d3b59ef51e (patch) | |
tree | fc253ff08ffd4d2e0188b8bd7a0deba47b49b674 /src/test | |
parent | b0b0d6af6369f53caed2222837149dc4a90c739c (diff) | |
download | tor-804be10b096de6e6a7204cf3268857d3b59ef51e.tar.gz tor-804be10b096de6e6a7204cf3268857d3b59ef51e.zip |
Fix a may-be-used-uninitialized warning.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test_dir.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir.c b/src/test/test_dir.c index bef01e1472..fbd49b7106 100644 --- a/src/test/test_dir.c +++ b/src/test/test_dir.c @@ -783,7 +783,7 @@ get_detached_sigs(networkstatus_t *ns, networkstatus_t *ns2) static vote_routerstatus_t * gen_routerstatus_for_v3ns(int idx, time_t now) { - vote_routerstatus_t *vrs; + vote_routerstatus_t *vrs=NULL; routerstatus_t *rs; tor_addr_t addr_ipv6; @@ -1715,7 +1715,7 @@ static uint32_t alternate_clip_bw = 0; static vote_routerstatus_t * gen_routerstatus_for_umbw(int idx, time_t now) { - vote_routerstatus_t *vrs; + vote_routerstatus_t *vrs = NULL; routerstatus_t *rs; tor_addr_t addr_ipv6; uint32_t max_unmeasured_bw = (alternate_clip_bw > 0) ? |