diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 02275c107..84bddb564 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -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) { \