QMP: Drop wrong assert()
Some commands return a QList of QDicts, which is valid, but will trig the assert(). Just drop it. Reported-by: Nathan Baum <nathan@parenthephobia.org.uk> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
95a2f9bc58
commit
810f49b56a
|
@ -283,7 +283,6 @@ static void monitor_protocol_emitter(Monitor *mon, QObject *data)
|
||||||
if (!monitor_has_error(mon)) {
|
if (!monitor_has_error(mon)) {
|
||||||
/* success response */
|
/* success response */
|
||||||
if (data) {
|
if (data) {
|
||||||
assert(qobject_type(data) == QTYPE_QDICT);
|
|
||||||
qobject_incref(data);
|
qobject_incref(data);
|
||||||
qdict_put_obj(qmp, "return", data);
|
qdict_put_obj(qmp, "return", data);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue