summaryrefslogtreecommitdiff
path: root/cmds-send.c
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2013-01-20 16:04:18 -0500
committerDavid Sterba <dsterba@suse.cz>2013-01-21 18:37:50 +0100
commite02556d64a4dcabf3681e3a8291618193fbec966 (patch)
tree9c5583da3104f610e80c46ee8fe3c81a85ec4217 /cmds-send.c
parent19def051271a1dd70cd670fb7717d755f51a62c1 (diff)
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>
Diffstat (limited to 'cmds-send.c')
-rw-r--r--cmds-send.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmds-send.c b/cmds-send.c
index ac1d3cf6..5607f2a7 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];