提交 aea47e48 编写于 作者: M Martin Kletzander

Avoid wild securityManager pointer in tests

For some reason we are not setting the driver with memset() to zeros.
But since commit 74abc3de
driver->securityManager is being accessed and qemuagenttest started
crashing due to that.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 8d48ce02
...@@ -558,6 +558,8 @@ int qemuTestDriverInit(virQEMUDriver *driver) ...@@ -558,6 +558,8 @@ int qemuTestDriverInit(virQEMUDriver *driver)
if (virMutexInit(&driver->lock) < 0) if (virMutexInit(&driver->lock) < 0)
return -1; return -1;
driver->securityManager = NULL;
driver->config = virQEMUDriverConfigNew(false); driver->config = virQEMUDriverConfigNew(false);
if (!driver->config) if (!driver->config)
goto error; goto error;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册