aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/test_policy.c')
-rw-r--r--src/test/test_policy.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/test_policy.c b/src/test/test_policy.c
index 2e87f13fc0..b4cbfb2579 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);