From cf8ef2aea24d7ec63bc8d91acc2f928ac2c3a5b5 Mon Sep 17 00:00:00 2001 From: Mykyta Holubakha Date: Thu, 28 Jul 2016 13:38:02 +0000 Subject: Initialize client's subscribed events --- sway/ipc-server.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/ipc-server.c') diff --git a/sway/ipc-server.c b/sway/ipc-server.c index 305b6944..326b309f 100644 --- a/sway/ipc-server.c +++ b/sway/ipc-server.c @@ -146,6 +146,7 @@ int ipc_handle_connection(int fd, uint32_t mask, void *data) { struct ipc_client* client = malloc(sizeof(struct ipc_client)); client->payload_length = 0; client->fd = client_fd; + client->subscribed_events = 0; client->event_source = wlc_event_loop_add_fd(client_fd, WLC_EVENT_READABLE, ipc_client_handle_readable, client); list_add(ipc_client_list, client); -- cgit v1.2.3