qapi: Don't pass NULL to printf in string input visitorpull-qapi-2016-04-29
commit0a40bdab0d48d9ce0c34bc2d319e44e92e0cc942
authorEric Blake <eblake@redhat.com>
Thu, 28 Apr 2016 21:45:28 +0000 (28 15:45 -0600)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 29 Apr 2016 09:11:36 +0000 (29 11:11 +0200)
tree9ed43f51107a77ecd48e00eaab83d742337accd7
parent736f85d5db701cc9d464a03b583d4a04606a0dd5
qapi: Don't pass NULL to printf in string input visitor

Make sure the error message for visit_type_uint64() gracefully
handles a NULL 'name' when called from the top level or a list
context, as not all the world behaves like glibc in allowing
NULL through a printf-family %s.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1461879932-9020-21-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/string-input-visitor.c