mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-14 23:24:23 +03:00
storage: file: Tolerate NULL src when uninitializing the backend
Allow de-init of null storage sources.
This commit is contained in:
parent
63fc72d38a
commit
96e00c4fc1
@ -2540,7 +2540,7 @@ int storageRegister(void)
|
||||
static bool
|
||||
virStorageFileIsInitialized(virStorageSourcePtr src)
|
||||
{
|
||||
return !!src->drv;
|
||||
return src && src->drv;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user