summaryrefslogtreecommitdiff
path: root/send-test.c
diff options
context:
space:
mode:
authorZach Brown <zab@redhat.com>2013-10-07 14:43:02 -0700
committerChris Mason <chris.mason@fusionio.com>2013-10-16 08:23:13 -0400
commite2da6395959c454d1e98ff03b259ddc7e96b5861 (patch)
tree0047a47a8b733de7a6e395b4ad17813e1949d622 /send-test.c
parent7dff2d3a1f54fe4f519aa804f1935d02fafa5a3e (diff)
btrfs-progs: don't deref pipefd[-1]
commit 4782e8ebdb583dfa3615f7b38dee729d34f62ec1 accidentally replaced [0] with [-1]. Put it back. This was found by static analysis. Signed-off-by: Zach Brown <zab@redhat.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Diffstat (limited to 'send-test.c')
-rw-r--r--send-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/send-test.c b/send-test.c
index 3775f5fd..a37b7fd6 100644
--- a/send-test.c
+++ b/send-test.c
@@ -354,7 +354,7 @@ static void *process_thread(void *arg_)
int ret;
while (1) {
- ret = btrfs_read_and_process_send_stream(pipefd[-1],
+ ret = btrfs_read_and_process_send_stream(pipefd[0],
&send_ops_print, arg_, 0);
if (ret)
break;