summary refs log tree commit diff stats
path: root/ui/curses.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-05-19 18:57:34 +0200
committerGerd Hoffmann <kraxel@redhat.com>2014-05-21 11:57:57 +0200
commit5f758366c0710d23e43f4d0f83816b98616a13d0 (patch)
treedbe5d4add2d20199fa90ca1cd0b2375ca3cb087d /ui/curses.c
parent3f9286b7214fbc7135d4fc223f07b0b30b91e2f1 (diff)
downloadfocaccia-qemu-5f758366c0710d23e43f4d0f83816b98616a13d0.tar.gz
focaccia-qemu-5f758366c0710d23e43f4d0f83816b98616a13d0.zip
char: Use return values instead of error_is_set(errp)
Using error_is_set(errp) to check whether a function call failed is
fragile: it breaks when errp is null.  Check perfectly suitable return
values instead when possible.  As far as I can tell, errp can't be
null there, but this is more robust and more obviously correct

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/curses.c')
0 files changed, 0 insertions, 0 deletions