From: Doug Goldstein Date: Sun, 9 Jun 2013 22:23:35 +0000 (-0500) Subject: Fix use of VIR_STRDUP vs strdup X-Git-Tag: v1.0.5.2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab7e3039e03449d0ba70fc71eadf58fa246bfd85;p=thirdparty%2Flibvirt.git Fix use of VIR_STRDUP vs strdup 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. --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index d96805a476..606194c581 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -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; }