From 069def25cb5db683d82f656a6106dd32a92247df Mon Sep 17 00:00:00 2001 From: Luiz Capitulino Date: Fri, 18 Dec 2009 13:25:01 -0200 Subject: [PATCH] QMP: Assure that returned data is a QDict This is for debug purposes only. Signed-off-by: Luiz Capitulino Signed-off-by: Anthony Liguori (cherry picked from commit 19863875a2e18fc868a7b830f16fa76d32518bd1) --- monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/monitor.c b/monitor.c index 129badcd1a..a3ec65f1d9 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 { -- 2.11.4.GIT