[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 4/4] monitor: Fix failure path for "S" argument
From: |
Bandan Das |
Subject: |
[Qemu-devel] [PATCH v5 4/4] monitor: Fix failure path for "S" argument |
Date: |
Wed, 3 Jun 2015 18:38:10 -0400 |
Since the "S" argument type is only used with the "?" flag,
the bug can't bite.
Signed-off-by: Bandan Das <address@hidden>
Reviewed-by: Markus Armbruster <address@hidden>
---
monitor.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/monitor.c b/monitor.c
index 640c05c..5a18844 100644
--- a/monitor.c
+++ b/monitor.c
@@ -4062,7 +4062,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;
--
2.1.0
- [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 1/4] monitor: remove debug prints, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 2/4] monitor: cleanup parsing of cmd name and cmd arguments, Bandan Das, 2015/06/03
- [Qemu-devel] [PATCH v5 4/4] monitor: Fix failure path for "S" argument,
Bandan Das <=
- [Qemu-devel] [PATCH v5 3/4] monitor: Point to "help" command on syntax error, Bandan Das, 2015/06/03
- Re: [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Markus Armbruster, 2015/06/08
- Re: [Qemu-devel] [PATCH v5 0/4] monitor: suggest running "help" for command errors, Markus Armbruster, 2015/06/16