mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-28 15:56:59 +00:00
qapi: assert list entry has a value
This helps to figure out the expectations. Backports commit eac8e79ff749fc15e1dca4caccf1f38664ab4915 from qemu
This commit is contained in:
parent
bd469af15f
commit
ddc25c8aaf
|
@ -83,6 +83,7 @@ static QObject *qmp_input_get_object(QmpInputVisitor *qiv,
|
|||
assert(qobject_type(qobj) == QTYPE_QLIST);
|
||||
assert(!name);
|
||||
ret = qlist_entry_obj(tos->entry);
|
||||
assert(ret);
|
||||
if (consume) {
|
||||
tos->entry = qlist_next(tos->entry);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue