mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-06-01 03:30:20 +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(qobject_type(qobj) == QTYPE_QLIST);
|
||||||
assert(!name);
|
assert(!name);
|
||||||
ret = qlist_entry_obj(tos->entry);
|
ret = qlist_entry_obj(tos->entry);
|
||||||
|
assert(ret);
|
||||||
if (consume) {
|
if (consume) {
|
||||||
tos->entry = qlist_next(tos->entry);
|
tos->entry = qlist_next(tos->entry);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue