From b6923283366dfad7e97ed5980a85abd32d7b6662 Mon Sep 17 00:00:00 2001 From: Brad House Date: Tue, 26 Mar 2024 15:04:37 -0400 Subject: [PATCH] silence clang static analyzer --- src/lib/ares_event_poll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ares_event_poll.c b/src/lib/ares_event_poll.c index cad77693..33b1d6df 100644 --- a/src/lib/ares_event_poll.c +++ b/src/lib/ares_event_poll.c @@ -99,7 +99,7 @@ static size_t ares_evsys_poll_wait(ares_event_thread_t *e, goto done; } - for (i = 0; i < num_fds; i++) { + for (i = 0; pollfd != NULL && i < num_fds; i++) { ares_event_t *ev; ares_event_flags_t flags = 0;