tests: Workaround scan-build false positive with FD_ZERO/FD_SET

This commit is contained in:
Ondřej Surý 2019-10-13 06:40:25 +02:00
parent 80b55d25de
commit 7aa7f8592c

View 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);