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:
Bandan Das 2015-06-03 18:38:10 -04:00 committed by Markus Armbruster
parent dd41eea771
commit e549d2aaeb
1 changed files with 1 additions and 1 deletions

View File

@ -4016,7 +4016,7 @@ static QDict *monitor_parse_arguments(Monitor *mon,
if (len <= 0) {
monitor_printf(mon, "%s: string expected\n",
cmd->name);
break;
goto fail;
}
qdict_put(qdict, key, qstring_from_str(p));
p += len;