From c2b6fac92d32b8def914df898f952dc6f052789e Mon Sep 17 00:00:00 2001 From: Alex Young Date: Wed, 13 Jun 2012 13:52:15 +0100 Subject: [PATCH] Fix an argv array reference (root cause of a bug from the last commit) --- src/flexnbd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flexnbd.c b/src/flexnbd.c index fb3cf34..7b59417 100644 --- a/src/flexnbd.c +++ b/src/flexnbd.c @@ -395,7 +395,7 @@ int mode_mirror( int argc, char *argv[] ) } if ( err ) { exit_err( mirror_help_text ); } - if (argv[2] == NULL) { + if (remote_argv[2] == NULL) { do_remote_command( "mirror", sock, 2, remote_argv ); } else {