aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_channel.c
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2017-12-07 16:00:18 -0500
committerNick Mathewson <nickm@torproject.org>2017-12-08 14:43:27 -0500
commite96c577ed25b02155757737e20ef6e4577a44493 (patch)
tree7b10729356c8337138f17627053aaab2cec04907 /src/test/test_channel.c
parent6120efd771928fc958b552b9f5c3e09d949e92fe (diff)
downloadtor-e96c577ed25b02155757737e20ef6e4577a44493.tar.gz
tor-e96c577ed25b02155757737e20ef6e4577a44493.zip
test: Make older GCC happy and thus our oniongit pipeline
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/test/test_channel.c')
-rw-r--r--src/test/test_channel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/test_channel.c b/src/test/test_channel.c
index c3b99d87ac..38b69a9ad3 100644
--- a/src/test/test_channel.c
+++ b/src/test/test_channel.c
@@ -1421,7 +1421,8 @@ test_channel_for_extend(void *arg)
channel_clear_client(chan1);
/* Non matching ed identity with valid digest. */
- ed25519_public_key_t dumb_ed_id = {0};
+ ed25519_public_key_t dumb_ed_id;
+ memset(&dumb_ed_id, 0, sizeof(dumb_ed_id));
ret_chan = channel_get_for_extend(digest, &dumb_ed_id, &addr, &msg,
&launch);
tt_assert(!ret_chan);