1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-13 17:18:01 +03:00

storage: file: Tolerate NULL src when uninitializing the backend

Allow de-init of null storage sources.
This commit is contained in:
Peter Krempa 2014-06-30 16:24:33 +02:00
parent 63fc72d38a
commit 96e00c4fc1

View File

@ -2540,7 +2540,7 @@ int storageRegister(void)
static bool
virStorageFileIsInitialized(virStorageSourcePtr src)
{
return !!src->drv;
return src && src->drv;
}