]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: fix virStorageFileGetBackingStoreStr error handling
authorDaniel P. Berrangé <berrange@redhat.com>
Wed, 25 Apr 2018 11:50:27 +0000 (12:50 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 3 May 2018 12:15:51 +0000 (13:15 +0100)
commitc444505c9902d038740d8e39a18ad3c86177bf58
tree95f2b3aee95c14e5496b7007390d988f35195305
parentdbf28572c865d382bcbcb1b76833420b20c38a4d
util: fix virStorageFileGetBackingStoreStr error handling

The virStorageFileGetBackingStoreStr method has overloaded the NULL
return value to indicate both no backing available and a fatal
error dealing with it.

The caller is thus not able to correctly propagate the error
messages.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_driver.c
src/util/virstoragefile.c
src/util/virstoragefile.h