qemu: Avoid overwriting errors from virGetHostname

This commit is contained in:
Jiri Denemark 2011-08-03 12:00:17 +02:00
parent 5ef1b6c54a
commit 63e4af45f2
1 changed files with 1 additions and 1 deletions

View File

@ -257,7 +257,7 @@ qemuMigrationCookieNew(virDomainObjPtr dom)
memcpy(mig->uuid, dom->def->uuid, VIR_UUID_BUFLEN);
if (!(mig->localHostname = virGetHostname(NULL)))
goto no_memory;
goto error;
if (virGetHostUUID(mig->localHostuuid) < 0) {
qemuReportError(VIR_ERR_INTERNAL_ERROR, "%s",
_("Unable to obtain host UUID"));