From: Pavel Hrdina Date: Wed, 21 Jan 2015 10:13:31 +0000 (+0100) Subject: xenapi_driver: fix copy-paste typo X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=828e485bd5dad0d9c49e0c11080db38b3bcc970c;p=libvirt.git xenapi_driver: fix copy-paste typo Clang found that we are passing variable with wrong enum type to 'xenapiCrashExitEnum2virDomainLifecycle' function. This is probably copy-paste typo as the correct variable exists in the code, but it isn't used. Signed-off-by: Pavel Hrdina --- diff --git a/src/xenapi/xenapi_driver.c b/src/xenapi/xenapi_driver.c index c5118ec36f..cef53eccba 100644 --- a/src/xenapi/xenapi_driver.c +++ b/src/xenapi/xenapi_driver.c @@ -1504,7 +1504,7 @@ xenapiDomainGetXMLDesc(virDomainPtr dom, unsigned int flags) defPtr->onReboot = xenapiNormalExitEnum2virDomainLifecycle(action); enum xen_on_crash_behaviour crash; if (xen_vm_get_actions_after_crash(session, &crash, vm)) - defPtr->onCrash = xenapiCrashExitEnum2virDomainLifecycle(action); + defPtr->onCrash = xenapiCrashExitEnum2virDomainLifecycle(crash); xen_vm_get_platform(session, &result, vm); if (result != NULL) { size_t i;