summaryrefslogtreecommitdiff
path: root/repo/qemu/musl-initialise-msghdr.patch
blob: 17b441cf08fb4d5e776489ca2d82da8d9ac8f250 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Patch-Source: https://github.com/void-linux/void-packages/blob/master/srcpkgs/qemu/patches/musl-initialize-msghdr.patch
Ref: https://github.com/void-linux/void-packages/issues/23557

diff --git linux-user/syscall.c linux-user/syscall.c
index 945fc25..8d8b68a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -3071,7 +3071,7 @@ static abi_long do_sendrecvmsg_locked(int fd, struct target_msghdr *msgp,
                                       int flags, int send)
 {
     abi_long ret, len;
-    struct msghdr msg;
+    struct msghdr msg = {0};
     abi_ulong count;
     struct iovec *vec;
     abi_ulong target_vec;