Received: from eggs.gnu.org ([2001:4830:134:3::10]:34474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmnqr-00026j-OK for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:10:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmnqq-0001Ce-Lo for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:10:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmnqq-0001CW-FD for qemu-devel@nongnu.org; Wed, 21 Sep 2016 16:10:40 -0400 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 22 Sep 2016 00:10:16 +0400 Message-Id: <20160921201018.20957-3-marcandre.lureau@redhat.com> In-Reply-To: <20160921201018.20957-1-marcandre.lureau@redhat.com> References: <20160921201018.20957-1-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 2/4] qapi: assert list entry has a value List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: berto@igalia.com, eblake@redhat.com, armbru@redhat.com, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= This helps to figure out the expectations. Signed-off-by: Marc-Andr=C3=A9 Lureau --- qapi/qmp-input-visitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp-input-visitor.c index be52aaf..c1019d6 100644 --- a/qapi/qmp-input-visitor.c +++ b/qapi/qmp-input-visitor.c @@ -84,6 +84,7 @@ static QObject *qmp_input_get_object(QmpInputVisitor *q= iv, assert(qobject_type(qobj) =3D=3D QTYPE_QLIST); assert(!name); ret =3D qlist_entry_obj(tos->entry); + assert(ret); if (consume) { tos->entry =3D qlist_next(tos->entry); } --=20 2.10.0