aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-12-22 01:09:06 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-01-08 09:58:40 -0600
commit810f49b56a5d0cd6848856af51d3093ae9adc7b1 (patch)
tree9fe6659b6b8af2a7e619fd172e5fc70b89ce2a3e /monitor.c
parent95a2f9bc588c3f83375d87b0a9394f89a1bcfada (diff)
QMP: Drop wrong assert()
Some commands return a QList of QDicts, which is valid, but will trig the assert(). Just drop it. Reported-by: Nathan Baum <nathan@parenthephobia.org.uk> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index c0dc48ea00..3af1d5c782 100644
--- a/monitor.c
+++ b/monitor.c
@@ -283,7 +283,6 @@ static void monitor_protocol_emitter(Monitor *mon, QObject *data)
if (!monitor_has_error(mon)) {
/* success response */
if (data) {
- assert(qobject_type(data) == QTYPE_QDICT);
qobject_incref(data);
qdict_put_obj(qmp, "return", data);
} else {