aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuiz Capitulino <lcapitulino@redhat.com>2009-12-18 13:25:01 -0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-12-19 08:26:02 -0600
commit3661d51e8d75710f95376c9383d0cd8042d51727 (patch)
treea913846fa96ba798107718f86aa17b100a5c8a8a
parent0abc657914c73c74a7381a26dd45d138a4b3bdd7 (diff)
downloadqemu-3661d51e8d75710f95376c9383d0cd8042d51727.zip
qemu-3661d51e8d75710f95376c9383d0cd8042d51727.tar.gz
qemu-3661d51e8d75710f95376c9383d0cd8042d51727.tar.bz2
QMP: Assure that returned data is a QDict
This is for debug purposes only. Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--monitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monitor.c b/monitor.c
index 129badc..a3ec65f 100644
--- a/monitor.c
+++ b/monitor.c
@@ -283,6 +283,7 @@ 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 {