qapi: Add missing null check to opts_start_struct()
commitb774539743c52ef605c6e2cbac19376c2757cb86
authorMarkus Armbruster <armbru@redhat.com>
Sat, 1 Mar 2014 07:40:39 +0000 (1 08:40 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 3 Mar 2014 16:17:45 +0000 (3 11:17 -0500)
tree5f5f8d35d87fb56ee91feb1ee06c5564cb5efe47
parent25a7017555f1b4aeb543b5d323ff4afb8f9c5437
qapi: Add missing null check to opts_start_struct()

Argument is null when visiting an unboxed struct.  I can't see such a
visit in the current code.  Fix it anyway.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
qapi/opts-visitor.c