mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
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>
This commit is contained in:
parent
0abc657914
commit
3661d51e8d
1 changed files with 1 additions and 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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue