]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
tests: Workaround scan-build false positive with FD_ZERO/FD_SET
authorOndřej Surý <ondrej@sury.org>
Sun, 13 Oct 2019 04:40:25 +0000 (06:40 +0200)
committerOndřej Surý <ondrej@sury.org>
Mon, 4 Nov 2019 15:15:22 +0000 (16:15 +0100)
bin/tests/optional/zone_test.c

index 9a266e979e75118b7f5847864b5950207f6b4a7e..914a4341f2dfe37bb9daccb8e3f856d622d2e893 100644 (file)
@@ -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);