void-packages/srcpkgs/qemu/patches/musl-initialize-msghdr.patch

16 lines
509 B
Diff

Source: https://github.com/void-linux/void-packages/issues/23557
diff --git linux-user/syscall.c linux-user/syscall.c
index 945fc25..8d8b68a 100644
--- linux-user/syscall.c
+++ 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;