diff options
author | wm4 <wm4@nowhere> | 2016-02-12 16:11:05 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-12 16:11:05 +0100 |
commit | f9f3175487f9d3732ada3d7acd7d5472c8a069c0 (patch) | |
tree | 6701ffe536497fdac7483be1865d2b8f450d99f8 | |
parent | 0868546f9d7b69feb53c150ed508d5eb56274f86 (diff) |
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.
-rw-r--r-- | input/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |