From 810f49b56a5d0cd6848856af51d3093ae9adc7b1 Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Tue, 22 Dec 2009 01:09:06 -0200 Subject: 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 Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori --- monitor.c | 1 - 1 file changed, 1 deletion(-) (limited to 'monitor.c') 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 { -- cgit v1.2.3