test: fix warning about uninitialized memory (#515)

fix warning in tests

Fix By: Gregor Jasny (@gjasny)
pull/432/merge
Gregor Jasny 2 years ago committed by GitHub
parent 5236e35965
commit c391ea31b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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_);

Loading…
Cancel
Save