Explorar o código

test: Make older GCC happy and thus our oniongit pipeline

Signed-off-by: David Goulet <dgoulet@torproject.org>
David Goulet %!s(int64=7) %!d(string=hai) anos
pai
achega
e96c577ed2
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/test/test_channel.c

+ 2 - 1
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);