From: Eric Blake Date: Fri, 19 Aug 2011 14:14:58 +0000 (-0600) Subject: build: fix typo in recent test patch X-Git-Tag: v0.9.5-rc1~195 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=04682e694c1a44b2fb149bdcf3f20b5b06889934;p=thirdparty%2Flibvirt.git build: fix typo in recent test patch * src/test/test_driver.c (testDomainUndefineFlags): Use right variable name. --- diff --git a/src/test/test_driver.c b/src/test/test_driver.c index 422486ea42..ec2bd75f4d 100644 --- a/src/test/test_driver.c +++ b/src/test/test_driver.c @@ -2604,8 +2604,8 @@ static int testDomainUndefineFlags(virDomainPtr domain, event = virDomainEventNewFromObj(privdom, VIR_DOMAIN_EVENT_UNDEFINED, VIR_DOMAIN_EVENT_UNDEFINED_REMOVED); - if (virDomainObjIsActive(vm)) { - vm->persistent = 0; + if (virDomainObjIsActive(privdom)) { + privdom->persistent = 0; } else { virDomainRemoveInactive(&privconn->domains, privdom);