Signed-off-by: Pavel Hrdina <[email protected]> --- monitor.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/monitor.c b/monitor.c
index db9a8d0..a538e6a 100644
--- a/monitor.c
+++ b/monitor.c
@@ -3769,6 +3769,9 @@ static const mon_cmd_t *monitor_parse_command(Monitor
*mon,
val = 1;
} else if (p - beg == 3 && !memcmp(beg, "off", p - beg)) {
val = 0;
+ } else if (*typestr == '?') {
+ typestr++;
+ break;
} else {
monitor_printf(mon, "Expected 'on' or 'off'\n");
goto fail;
--
1.7.11.2
