Commit da78e382 authored by Dr. David Alan Gilbert's avatar Dr. David Alan Gilbert Committed by Markus Armbruster
Browse files

option: Remove shadowing opt decl from qemu_opt_print()



opt was declared as a separate local inside the last loop,
shadowing the local at the top of the function.

Signed-off-by: default avatarDr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20171005190725.18712-1-dgilbert@redhat.com>
Reviewed-by: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
parent 7ad9270e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -766,7 +766,7 @@ void qemu_opts_print(QemuOpts *opts, const char *separator)
    }
    for (; desc && desc->name; desc++) {
        const char *value;
        QemuOpt *opt = qemu_opt_find(opts, desc->name);
        opt = qemu_opt_find(opts, desc->name);

        value = opt ? opt->str : desc->def_value_str;
        if (!value) {