Commit 2a245709 authored by Stefan Hajnoczi's avatar Stefan Hajnoczi Committed by Max Reitz
Browse files

qemu-img: don't shadow opts variable in img_dd()



It's confusing when two different variables have the same name in one
function.

Cc: Reda Sallahi <fullmanet@gmail.com>
Signed-off-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
Message-id: 20170619150002.3033-1-stefanha@redhat.com
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent f69165a8
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -4255,15 +4255,12 @@ static int img_dd(int argc, char **argv)
        case 'U':
            force_share = true;
            break;
        case OPTION_OBJECT: {
            QemuOpts *opts;
            opts = qemu_opts_parse_noisily(&qemu_object_opts,
                                           optarg, true);
            if (!opts) {
        case OPTION_OBJECT:
            if (!qemu_opts_parse_noisily(&qemu_object_opts, optarg, true)) {
                ret = -1;
                goto out;
            }
        }   break;
            break;
        case OPTION_IMAGE_OPTS:
            image_opts = true;
            break;