From: Ondřej Surý Date: Sun, 13 Oct 2019 04:40:25 +0000 (+0200) Subject: tests: Workaround scan-build false positive with FD_ZERO/FD_SET X-Git-Tag: v9.15.6~36^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7aa7f8592cf095712672070fdf5aec4e034d3a59;p=thirdparty%2Fbind9.git tests: Workaround scan-build false positive with FD_ZERO/FD_SET --- diff --git a/bin/tests/optional/zone_test.c b/bin/tests/optional/zone_test.c index 9a266e979e7..914a4341f2d 100644 --- a/bin/tests/optional/zone_test.c +++ b/bin/tests/optional/zone_test.c @@ -146,12 +146,11 @@ query(void) { dns_fixedname_t name; dns_fixedname_t found; dns_db_t *db; - char *s; isc_buffer_t buffer; isc_result_t result; dns_rdataset_t rdataset; dns_rdataset_t sigset; - fd_set rfdset; + fd_set rfdset = { { 0 } }; db = NULL; result = dns_zone_getdb(zone, &db); @@ -166,7 +165,7 @@ query(void) { dns_rdataset_init(&sigset); do { - + char *s; fprintf(stdout, "zone_test "); fflush(stdout); FD_ZERO(&rfdset);