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

16 lines
513 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
--- 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;