aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-09-30 13:59:47 +0400
committerMarkus Armbruster <armbru@redhat.com>2016-10-07 19:22:11 +0200
commiteac8e79ff749fc15e1dca4caccf1f38664ab4915 (patch)
tree569c262e6f5eb60600fd4788f29807a82243b876
parent5d0cbbcfeb59e1e3f5ee7d26b8a215382f6d9abd (diff)
downloadqemu-eac8e79ff749fc15e1dca4caccf1f38664ab4915.zip
qemu-eac8e79ff749fc15e1dca4caccf1f38664ab4915.tar.gz
qemu-eac8e79ff749fc15e1dca4caccf1f38664ab4915.tar.bz2
qapi: assert list entry has a value
This helps to figure out the expectations. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20160930095948.3154-3-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--qapi/qmp-input-visitor.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp-input-visitor.c
index c7deca9..fe097c9 100644
--- a/qapi/qmp-input-visitor.c
+++ b/qapi/qmp-input-visitor.c
@@ -84,6 +84,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);
}