diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2009-12-18 13:25:01 -0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-12-19 08:26:02 -0600 |
commit | 3661d51e8d75710f95376c9383d0cd8042d51727 (patch) | |
tree | a913846fa96ba798107718f86aa17b100a5c8a8a /monitor.c | |
parent | 0abc657914c73c74a7381a26dd45d138a4b3bdd7 (diff) |
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>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |