]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: storage: Fix possible crash when source path is NULL
authorPeter Krempa <pkrempa@redhat.com>
Tue, 21 Apr 2015 15:35:23 +0000 (17:35 +0200)
committerCole Robinson <crobinso@redhat.com>
Tue, 28 Apr 2015 15:26:08 +0000 (11:26 -0400)
commite84e5aa3df922157ba9da842a4a9dc3c1b149d82
tree9845dc2e6bebf3bc4bc77b605b6fe25e1479857b
parent24e0cecb7c8441a4ee10c7e3dd143aac0498aee2
util: storage: Fix possible crash when source path is NULL

Some storage protocols allow to have the @path field in struct
virStorageSource set to NULL. Add NULLSTR() wrappers to handle this
possibility until I finish the storage source error formatter.

(cherry picked from commit 62a61d583c65fb5e4e56f49af33f926b6a0cba6e)
src/util/virstoragefile.c