summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/or/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/test.c b/src/or/test.c
index 7506d5deb1..8706600eb5 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -919,7 +919,8 @@ test_dir_format()
test_assert(!is_legal_nickname_or_hexdigest("abcdefghijklmnopqrst"));
get_platform_str(platform, sizeof(platform));
-
+ memset(&r1,0,sizeof(r1));
+ memset(&r2,0,sizeof(r2));
r1.address = "testaddr1.foo.bar";
r1.addr = 0xc0a80001u; /* 192.168.0.1 */
r1.published_on = 0;