]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
test: Make older GCC happy and thus our oniongit pipeline
authorDavid Goulet <dgoulet@torproject.org>
Thu, 7 Dec 2017 21:00:18 +0000 (16:00 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 8 Dec 2017 19:43:27 +0000 (14:43 -0500)
Signed-off-by: David Goulet <dgoulet@torproject.org>
src/test/test_channel.c

index c3b99d87acdc2012522bb8807af8d976ca7d214e..38b69a9ad34643fd361c6a5f7bd0a0ef6a36b564 100644 (file)
@@ -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);