btrfs-progs: initialize data before send ioctl
authorArvin Schnell <aschnell@suse.de>
Sun, 20 Jan 2013 21:04:18 +0000 (16:04 -0500)
committerDavid Sterba <dsterba@suse.cz>
Mon, 21 Jan 2013 17:37:50 +0000 (18:37 +0100)
Likely not strictly needed but I noticed valgrind complaining about
uninitialised memory in the ioctl call.

Signed-off-by: Arvin Schnell <aschnell@suse.de>
cmds-send.c

index ac1d3cf..5607f2a 100644 (file)
@@ -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];