mirror of https://github.com/mpv-player/mpv
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:
parent
0868546f9d
commit
f9f3175487
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue