From: Arvin Schnell Date: Sun, 20 Jan 2013 21:04:18 +0000 (-0500) Subject: btrfs-progs: initialize data before send ioctl X-Git-Tag: upstream/4.16.1~3460^2~53 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e02556d64a4dcabf3681e3a8291618193fbec966;p=platform%2Fupstream%2Fbtrfs-progs.git 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 --- diff --git a/cmds-send.c b/cmds-send.c index ac1d3cf..5607f2a 100644 --- a/cmds-send.c +++ b/cmds-send.c @@ -273,6 +273,7 @@ static int do_send(struct btrfs_send *send, u64 root_id, u64 parent_root) goto out; } + memset(&io_send, 0, sizeof(io_send)); io_send.send_fd = pipefd[1]; send->send_fd = pipefd[0];