From f9f3175487f9d3732ada3d7acd7d5472c8a069c0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 12 Feb 2016 16:11:05 +0100 Subject: [PATCH] ipc: fix uninitialized field The sockaddr_un.sun_len field was not initialized. It seems our API use is correct by simply making sure it's 0. Fixes CID 1350075. --- input/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/input/ipc.c b/input/ipc.c index 6a0afc6e2a..c628fc9ea4 100644 --- a/input/ipc.c +++ b/input/ipc.c @@ -740,7 +740,7 @@ static void *ipc_thread(void *p) int rc; int ipc_fd; - struct sockaddr_un ipc_un; + struct sockaddr_un ipc_un = {0}; struct mp_ipc_ctx *arg = p;