Received: from eggs.gnu.org ([2001:4830:134:3::10]:51846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsZh6-0007hS-Vr for qemu-devel@nongnu.org; Fri, 07 Oct 2016 14:16:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bsZh5-0001Af-85 for qemu-devel@nongnu.org; Fri, 07 Oct 2016 14:16:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bsZh5-0001AE-1v for qemu-devel@nongnu.org; Fri, 07 Oct 2016 14:16:27 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A08C61173A for ; Fri, 7 Oct 2016 18:16:26 +0000 (UTC) From: Markus Armbruster Date: Fri, 7 Oct 2016 20:16:16 +0200 Message-Id: <1475864182-16550-6-git-send-email-armbru@redhat.com> In-Reply-To: <1475864182-16550-1-git-send-email-armbru@redhat.com> References: <1475864182-16550-1-git-send-email-armbru@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL v2 05/11] 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: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= From: Marc-Andr=C3=A9 Lureau This helps to figure out the expectations. Signed-off-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Eric Blake Message-Id: <20160930095948.3154-3-marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster Signed-off-by: Markus Armbruster --- 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 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 *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.5.5