btrfs-progs: don't deref pipefd[-1]

commit 4782e8ebdb 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>
This commit is contained in:
Zach Brown 2013-10-07 14:43:02 -07:00 committed by Chris Mason
parent 7dff2d3a1f
commit e2da639595
1 changed files with 1 additions and 1 deletions

View File

@ -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;