From 65e3fb4e095908d2b10c4aa51b6c32465aabba4b Mon Sep 17 00:00:00 2001 From: Brad House Date: Wed, 22 May 2024 11:30:04 -0400 Subject: [PATCH] coverity: try to silence warning --- src/lib/ares_event_configchg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ares_event_configchg.c b/src/lib/ares_event_configchg.c index 961224a0..dc6e4656 100644 --- a/src/lib/ares_event_configchg.c +++ b/src/lib/ares_event_configchg.c @@ -102,7 +102,7 @@ static void ares_event_configchg_cb(ares_event_thread_t *e, ares_socket_t fd, ptr += sizeof(struct inotify_event) + event->len) { event = (const struct inotify_event *)ptr; - if (ares_strlen(event->name) == 0) { + if (event->len == 0 || ares_strlen(event->name) == 0) { continue; }