mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
Avoid wild securityManager pointer in tests
For some reason we are not setting the driver with memset() to zeros.
But since commit 74abc3deac
driver->securityManager is being accessed and qemuagenttest started
crashing due to that.
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
8d48ce02c3
commit
aea47e48c4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user