mirror of
https://github.com/qemu/qemu.git
synced 2025-01-22 21:44:07 +08:00
monitor: Fix failure path for "S" argument
Since the "S" argument type is only used with the "?" flag, the bug can't bite. Signed-off-by: Bandan Das <bsd@redhat.com> Acked-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
dd41eea771
commit
e549d2aaeb
@ -4016,7 +4016,7 @@ static QDict *monitor_parse_arguments(Monitor *mon,
|
|||||||
if (len <= 0) {
|
if (len <= 0) {
|
||||||
monitor_printf(mon, "%s: string expected\n",
|
monitor_printf(mon, "%s: string expected\n",
|
||||||
cmd->name);
|
cmd->name);
|
||||||
break;
|
goto fail;
|
||||||
}
|
}
|
||||||
qdict_put(qdict, key, qstring_from_str(p));
|
qdict_put(qdict, key, qstring_from_str(p));
|
||||||
p += len;
|
p += len;
|
||||||
|
Loading…
Reference in New Issue
Block a user