From fcfdd847f41e3f330cf7ddffa95413e794d32cc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Sun, 13 Oct 2019 06:40:25 +0200 Subject: [PATCH] tests: Workaround scan-build false positive with FD_ZERO/FD_SET (cherry picked from commit 7aa7f8592cf095712672070fdf5aec4e034d3a59) --- bin/tests/optional/zone_test.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/tests/optional/zone_test.c b/bin/tests/optional/zone_test.c index b26acea0b1..cf400f960c 100644 --- a/bin/tests/optional/zone_test.c +++ b/bin/tests/optional/zone_test.c @@ -149,12 +149,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); @@ -169,7 +168,7 @@ query(void) { dns_rdataset_init(&sigset); do { - + char *s; fprintf(stdout, "zone_test "); fflush(stdout); FD_ZERO(&rfdset);