[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] qemu: Avoid overwriting errors from virGetHostname



On 08/03/2011 04:08 AM, Jiri Denemark wrote:
---
  src/qemu/qemu_migration.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c
index 7aeea69..4d0e062 100644
--- a/src/qemu/qemu_migration.c
+++ b/src/qemu/qemu_migration.c
@@ -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;

ACK.

--
Eric Blake   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]