summary refs log tree commit diff stats
path: root/hw/i2c
diff options
context:
space:
mode:
authorEmilio G. Cota <cota@braap.org>2016-07-25 11:03:45 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-08-03 18:44:56 +0200
commit11b7b07f8a15879134a54e73fade98d5e11e04f8 (patch)
treef3ca6774ea7b23a2fb01ed45874d4f375fb10da4 /hw/i2c
parent071d4054770205ddb8a58a9e2735069d8fe52af1 (diff)
downloadfocaccia-qemu-11b7b07f8a15879134a54e73fade98d5e11e04f8.tar.gz
focaccia-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 'hw/i2c')
0 files changed, 0 insertions, 0 deletions