On 09/21/2016 03:10 PM, Marc-André Lureau wrote:
> This helps to figure out the expectations.
> 
> Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com>
> ---
>  qapi/qmp-input-visitor.c | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Eric Blake <ebl...@redhat.com>

> 
> 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 *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);
>          }
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to