[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 09/10] option: Remove shadowing opt decl from qemu
From: |
Markus Armbruster |
Subject: |
[Qemu-devel] [PULL v2 09/10] option: Remove shadowing opt decl from qemu_opt_print() |
Date: |
Wed, 20 Dec 2017 09:19:26 +0100 |
From: "Dr. David Alan Gilbert" <address@hidden>
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 <address@hidden>
Message-Id: <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Signed-off-by: Markus Armbruster <address@hidden>
---
util/qemu-option.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/util/qemu-option.c b/util/qemu-option.c
index 9b1dc8093b..877c5b4d67 100644
--- a/util/qemu-option.c
+++ b/util/qemu-option.c
@@ -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) {
--
2.13.6
- [Qemu-devel] [PULL v2 00/10] Command line patches for 2017-12-18, Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 02/10] qemu-options: Fix markup of -netdev l2tpv3, Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 06/10] qemu-options: Polish section "TPM device options", Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 10/10] option: Drop unused get_param_value(), get_next_param_value(), Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 08/10] qemu-options: Belatedly document --watchdog-action inject-nmi, Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 01/10] qemu-options: Remove stray colons from output of --help, Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 07/10] qemu-options: Polish section "Character device options", Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 04/10] qemu-options: Move -iscsi under "Block device options", Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 05/10] qemu-options: Add missing -iscsi Texinfo documentation, Markus Armbruster, 2017/12/20
- [Qemu-devel] [PULL v2 09/10] option: Remove shadowing opt decl from qemu_opt_print(),
Markus Armbruster <=
- [Qemu-devel] [PULL v2 03/10] qemu-options qemu-doc: Move "Device URL Syntax" to qemu-doc, Markus Armbruster, 2017/12/20
- Re: [Qemu-devel] [PULL v2 00/10] Command line patches for 2017-12-18, Peter Maydell, 2017/12/20