aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/fuzz_vrs.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2017-01-23 14:52:51 -0500
committerNick Mathewson <nickm@torproject.org>2017-01-30 08:37:27 -0500
commit2202ad7ab0132ed5505067aca9020caa05c918fd (patch)
tree263e04d81f5c2e1a4848e365ccbcdc521bc2cc85 /src/test/fuzz/fuzz_vrs.c
parent1d8e9e8c699e68cdbb33ab41ccbd65e3dab8ff6b (diff)
downloadtor-2202ad7ab0132ed5505067aca9020caa05c918fd.tar.gz
tor-2202ad7ab0132ed5505067aca9020caa05c918fd.zip
Fix a pair of compilation errors.
Diffstat (limited to 'src/test/fuzz/fuzz_vrs.c')
-rw-r--r--src/test/fuzz/fuzz_vrs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/fuzz/fuzz_vrs.c b/src/test/fuzz/fuzz_vrs.c
index 406a4de5f3..d2c0369f27 100644
--- a/src/test/fuzz/fuzz_vrs.c
+++ b/src/test/fuzz/fuzz_vrs.c
@@ -45,7 +45,8 @@ fuzz_cleanup(void)
int
fuzz_main(const uint8_t *data, size_t sz)
{
- char *str = tor_memdup_nulterm(data, sz), *s;
+ char *str = tor_memdup_nulterm(data, sz);
+ const char *s;
routerstatus_t *rs_ns = NULL, *rs_md = NULL, *rs_vote = NULL;
vote_routerstatus_t *vrs = tor_malloc_zero(sizeof(*vrs));
smartlist_t *tokens = smartlist_new();