qapi: Fix regression with '-netdev help'
commitd08ac81a459258ce20b3184fa9325c6c1350ac9e
authorEric Blake <eblake@redhat.com>
Wed, 14 Oct 2015 22:30:25 +0000 (14 16:30 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Thu, 15 Oct 2015 06:37:11 +0000 (15 08:37 +0200)
tree66c6c0716522439034e1914a9f76900cffc92ba2
parentc49d3411faae8ffaab8f7e5db47405a008411c10
qapi: Fix regression with '-netdev help'

Commit e36c714e causes 'qemu -netdev help' to dump core, because the
call to visit_end_union() is no longer conditional on whether *obj was
allocated.

Reported by Marc-AndrĂ© Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1444861825-19256-1-git-send-email-eblake@redhat.com>
[Commit message tweaked to say 'help' instead of '?']
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi-visit.py