]> xenbits.xensource.com Git - libvirt.git/commit
storage: Fix return value checks for virAsprintf
authorJohn Ferlan <jferlan@redhat.com>
Mon, 8 May 2017 11:30:19 +0000 (07:30 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 21 Jul 2017 18:51:47 +0000 (14:51 -0400)
commitd062dfd9d9a4705bf274c902de90df43325f81f4
tree10395a5f0bde269a764ca2bf91d2d3092bb259a3
parent55b1f1aabac2d718ab2a5cc631c59365610d251a
storage: Fix return value checks for virAsprintf

Use the < 0 rather than == -1 (consistently) for virAsprintf errors.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/storage/storage_backend_logical.c
src/storage/storage_backend_rbd.c
src/storage/storage_backend_sheepdog.c
src/storage/storage_backend_zfs.c
src/storage/storage_util.c
src/test/test_driver.c