提交 96e00c4f 编写于 作者: P Peter Krempa

storage: file: Tolerate NULL src when uninitializing the backend

Allow de-init of null storage sources.
上级 63fc72d3
......@@ -2540,7 +2540,7 @@ int storageRegister(void)
static bool
virStorageFileIsInitialized(virStorageSourcePtr src)
{
return !!src->drv;
return src && src->drv;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册