projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a2f9b
)
QMP: Drop wrong assert()
author
Luiz Capitulino
<lcapitulino@redhat.com>
Tue, 22 Dec 2009 03:09:06 +0000
(
01:09
-0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Fri, 8 Jan 2010 15:58:40 +0000
(09:58 -0600)
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>
monitor.c
patch
|
blob
|
history
diff --git
a/monitor.c
b/monitor.c
index
c0dc48e
..
3af1d5c
100644
(file)
--- a/
monitor.c
+++ b/
monitor.c
@@
-283,7
+283,6
@@
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 {