diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-12-18 10:29:27 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-12-18 10:29:27 -0500 |
commit | 498897e33d1e32054f0c5cd23f8f0850785733db (patch) | |
tree | 2d4677ede017a7d7f3f0723e92f2de313d09087d | |
parent | 428e2b7636ed2430dd41d3a802290e971d2a081a (diff) | |
download | tor-498897e33d1e32054f0c5cd23f8f0850785733db.tar.gz tor-498897e33d1e32054f0c5cd23f8f0850785733db.zip |
Fix a coverity uninitialized-pointer warning in policy tests.
This is CID 1340255
-rw-r--r-- | src/test/test_policy.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c index 4f5565e575..794978fc42 100644 --- a/src/test/test_policy.c +++ b/src/test/test_policy.c @@ -1021,6 +1021,8 @@ test_policies_getinfo_helper_policies(void *arg) const char *errmsg = NULL; routerinfo_t mock_my_routerinfo; + memset(&mock_my_routerinfo, 0, sizeof(mock_my_routerinfo)); + rv = getinfo_helper_policies(NULL, "exit-policy/default", &answer, &errmsg); tt_assert(rv == 0); tt_assert(answer != NULL); |