Fix a coverity uninitialized-pointer warning in policy tests.

This is CID 1340255
This commit is contained in:
Nick Mathewson 2015-12-18 10:29:27 -05:00
parent 428e2b7636
commit 498897e33d

View File

@ -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);