From: Luiz Capitulino Date: Tue, 22 Dec 2009 03:09:06 +0000 (-0200) Subject: QMP: Drop wrong assert() X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~9131 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=810f49b56a5d0cd6848856af51d3093ae9adc7b1;p=sdk%2Femulator%2Fqemu.git 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 --- diff --git a/monitor.c b/monitor.c index c0dc48e..3af1d5c 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 {