summaryrefslogtreecommitdiff
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 10:01:26 -0600
commitd68bf60838ece340f63adff103eece21d350fdc1 (patch)
tree0ad493adaee5e9a654b8c151596aa90d8cf5804d /monitor.c
parent57fa5ca551486e6fe7a3101a336a875cb6d6ba1f (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> (cherry picked from commit 810f49b56a5d0cd6848856af51d3093ae9adc7b1)
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 {