diff mbox

trivial patch for btrfs-progs

Message ID 20130117150932.GA11610@suse.de (mailing list archive)
State New, archived
Headers show

Commit Message

Arvin Schnell Jan. 17, 2013, 3:09 p.m. UTC
Hi,

please find attached a trivial patch for btrfs-progs. Likely not
strictly needed but I noticed valgrind complaining about
uninitialised memory in the ioctl call.

Regards,
  Arvin
diff mbox

Patch

diff --git a/cmds-send.c b/cmds-send.c
index 9b47e70..aa8c5a3 100644
--- a/cmds-send.c
+++ b/cmds-send.c
@@ -271,6 +271,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];