summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2016-02-12 16:11:05 +0100
committerwm4 <wm4@nowhere>2016-02-12 16:11:05 +0100
commitf9f3175487f9d3732ada3d7acd7d5472c8a069c0 (patch)
tree6701ffe536497fdac7483be1865d2b8f450d99f8 /input
parent0868546f9d7b69feb53c150ed508d5eb56274f86 (diff)
downloadmpv-f9f3175487f9d3732ada3d7acd7d5472c8a069c0.tar.bz2
mpv-f9f3175487f9d3732ada3d7acd7d5472c8a069c0.tar.xz
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.
Diffstat (limited to 'input')
-rw-r--r--input/ipc.c2
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;