From c391ea31b2c08995d03bbe0fdfe42c034f390eac Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Sat, 6 May 2023 22:23:19 +0200 Subject: [PATCH] test: fix warning about uninitialized memory (#515) fix warning in tests Fix By: Gregor Jasny (@gjasny) --- test/ares-test-misc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ares-test-misc.cc b/test/ares-test-misc.cc index b11b04ba..f85a3bf6 100644 --- a/test/ares-test-misc.cc +++ b/test/ares-test-misc.cc @@ -298,7 +298,7 @@ TEST_F(DefaultChannelTest, SearchOnionDomain) { } TEST_F(DefaultChannelTest, SendFailure) { - unsigned char buf[2]; + unsigned char buf[2] = {}; SearchResult result; ares_send(channel_, buf, sizeof(buf), SearchCallback, &result); EXPECT_TRUE(result.done_);