]> xenbits.xensource.com Git - 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)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 22 Apr 2015 12:18:52 +0000 (14:18 +0200)
commit62a61d583c65fb5e4e56f49af33f926b6a0cba6e
treeae127ace060113cdbc855ba7542f9656e0b6e9f5
parent64a9d2fa2f7259f936418f9d1fefe9ae46666b6f
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.
src/util/virstoragefile.c