]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix use of VIR_STRDUP vs strdup
authorDoug Goldstein <cardoe@cardoe.com>
Sun, 9 Jun 2013 22:23:35 +0000 (17:23 -0500)
committerCole Robinson <crobinso@redhat.com>
Mon, 10 Jun 2013 13:36:06 +0000 (09:36 -0400)
Commit 894f784948a93760629de3cb195c69ef4f4b831f broke the v1.0.5-maint
branch because VIR_STRDUP() didn't exist in the v1.0.5 release so the
resulting build is missing that symbol.

This patch is only for the v1.0.5-maint branch.

src/qemu/qemu_migration.c

index d96805a476bbffe0dac9851a7599124bff879afb..606194c58164b74c40537edbcd6caa73ecdd97d9 100644 (file)
@@ -1223,7 +1223,7 @@ qemuMigrationDriveMirror(virQEMUDriverPtr driver,
             virReportOOMError();
             goto error;
         }
-    } else if (VIR_STRDUP(hoststr, host) < 0) {
+    } else if ((hoststr = strdup(host)) == NULL) {
         goto error;
     }