diff --git a/src/test/test_driver.c b/src/test/test_driver.c index d03d55d560fd5aac7492a7981218d56f3ada4ae9..d74a0e2d560c8584b69ad0d8efa43aa7bfbb86e5 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2029,7 +2029,7 @@ static int testDomainGetMaxVcpus(virDomainPtr domain) static int testSetVcpus(virDomainPtr domain, unsigned int nrCpus) { testConnPtr privconn = domain->conn->privateData; - virDomainObjPtr privdom; + virDomainObjPtr privdom = NULL; int ret = -1, maxvcpus; /* Do this first before locking */