coverity: try to silence warning

pull/765/head
Brad House 8 months ago
parent 0fbb5f6b36
commit 65e3fb4e09
  1. 2
      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) { ptr += sizeof(struct inotify_event) + event->len) {
event = (const struct inotify_event *)ptr; event = (const struct inotify_event *)ptr;
if (ares_strlen(event->name) == 0) { if (event->len == 0 || ares_strlen(event->name) == 0) {
continue; continue;
} }

Loading…
Cancel
Save