btrfs-progs: initialize data before send ioctl
Likely not strictly needed but I noticed valgrind complaining about uninitialised memory in the ioctl call. Signed-off-by: Arvin Schnell <aschnell@suse.de>
This commit is contained in:
parent
19def05127
commit
e02556d64a
|
@ -273,6 +273,7 @@ static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
memset(&io_send, 0, sizeof(io_send));
|
||||||
io_send.send_fd = pipefd[1];
|
io_send.send_fd = pipefd[1];
|
||||||
send->send_fd = pipefd[0];
|
send->send_fd = pipefd[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue