qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [STABLE 0.12] QMP: Drop wrong assert()


From: Luiz Capitulino
Subject: [Qemu-devel] [STABLE 0.12] QMP: Drop wrong assert()
Date: Tue, 22 Dec 2009 01:09:06 -0200

Some commands return a QList of QDicts, which is valid,
but will trig the assert().

Just drop it.

Reported-by: Nathan Baum <address@hidden>
Signed-off-by: Luiz Capitulino <address@hidden>
---
 monitor.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

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 {
-- 
1.6.6.rc3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]