diff options
| author | Emilio G. Cota | 2016-07-25 17:03:45 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2016-08-03 18:44:56 +0200 |
| commit | 11b7b07f8a15879134a54e73fade98d5e11e04f8 (patch) | |
| tree | f3ca6774ea7b23a2fb01ed45874d4f375fb10da4 /qapi-schema.json | |
| parent | qdist: use g_renew and g_new instead of g_realloc and g_malloc. (diff) | |
| download | qemu-11b7b07f8a15879134a54e73fade98d5e11e04f8.tar.gz qemu-11b7b07f8a15879134a54e73fade98d5e11e04f8.tar.xz qemu-11b7b07f8a15879134a54e73fade98d5e11e04f8.zip | |
qdist: return "(empty)" instead of NULL when printing an empty dist
Printf'ing a NULL string is undefined behaviour. Avoid it.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Emilio G. Cota <cota@braap.org>
Message-Id: <1469459025-23606-4-git-send-email-cota@braap.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions
