When opts_parse() sets @invalidp to true, qemu_opts_parse_noisily()
uses has_help_option() to decide whether to print help. This parses
the input string a second time, in a slightly different way.
Easy to avoid: replace @invalidp by @help_wanted.
Signed-off-by: Markus Armbruster <address@hidden>
---
util/qemu-option.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
- opts = opts_parse(list, params, permit_abbrev, false, &invalidp, &err);
+ opts = opts_parse(list, params, permit_abbrev, false, &help_wanted, &err);
if (err) {
- if (invalidp && has_help_option(params)) {
+ if (help_wanted) {