summaryrefslogtreecommitdiffstats
path: root/server/inputs_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/inputs_channel.c')
-rw-r--r--server/inputs_channel.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/server/inputs_channel.c b/server/inputs_channel.c
index a3f26c02..932ead72 100644
--- a/server/inputs_channel.c
+++ b/server/inputs_channel.c
@@ -525,14 +525,11 @@ static void key_modifiers_sender(void *opaque)
void inputs_init(void)
{
- ChannelCbs channel_cbs;
- ClientCbs client_cbs;
+ ChannelCbs channel_cbs = { NULL, };
+ ClientCbs client_cbs = { NULL, };
ASSERT(!g_inputs_channel);
- memset(&channel_cbs, 0, sizeof(channel_cbs));
- memset(&client_cbs, 0, sizeof(client_cbs));
-
channel_cbs.config_socket = inputs_channel_config_socket;
channel_cbs.on_disconnect = inputs_channel_on_disconnect;
channel_cbs.send_item = inputs_channel_send_item;