summary refs log tree commit diff stats
path: root/tests/test-string-output-visitor.c
diff options
context:
space:
mode:
authorAmos Kong <akong@redhat.com>2014-04-28 13:53:49 +0800
committerLuiz Capitulino <lcapitulino@redhat.com>2014-05-08 14:19:58 -0400
commitcb45de6798956975c4b13a6233f7a00d2239b61a (patch)
treee39974a4bb81e0158c40c46c8a43548a21320f3d /tests/test-string-output-visitor.c
parenta719a27c824ea5e70f5bf6f3c8d13a8c1d6b1bfe (diff)
downloadfocaccia-qemu-cb45de6798956975c4b13a6233f7a00d2239b61a.tar.gz
focaccia-qemu-cb45de6798956975c4b13a6233f7a00d2239b61a.zip
qapi: treat all negative return of strtosz_suffix() as error
strtosz_suffix() might return negative error, this patch fixes
the error handling.

This patch also changes to handle error in the if statement
rather than handle success specially, this will make this use
of strtosz_suffix consistent with all other uses.

Signed-off-by: Amos Kong <akong@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'tests/test-string-output-visitor.c')
0 files changed, 0 insertions, 0 deletions