This commit is contained in:
Kovid Goyal 2021-04-24 07:43:02 +05:30
parent 24f0451c10
commit d6f856f2f2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -1499,7 +1499,7 @@ talk_loop(void *data) {
ChildMonitor *self = (ChildMonitor*)data;
set_thread_name("KittyPeerMon");
if (!init_loop_data(&talk_data.loop_data)) { log_error("Failed to create wakeup fd for talk thread with error: %s", strerror(errno)); }
PollFD fds[PEER_LIMIT + 8] = {0};
PollFD fds[PEER_LIMIT + 8] = {{0}};
size_t num_listen_fds = 0, num_peer_fds = 0;
#define add_listener(which) \
if (self->which > -1) { \