0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

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.
This commit is contained in:
wm4 2016-02-12 16:11:05 +01:00
parent 0868546f9d
commit f9f3175487

View File

@ -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;