mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Fix a coverity uninitialized-pointer warning in policy tests.
This is CID 1340255
This commit is contained in:
parent
428e2b7636
commit
498897e33d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user