mirror of https://gitee.com/openkylin/qemu.git
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: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20171005190725.18712-1-dgilbert@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
7ad9270ee2
commit
da78e382dd
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue