Fix use of VIR_STRDUP vs strdup

Commit 894f784948 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.
This commit is contained in:
Doug Goldstein 2013-06-09 17:23:35 -05:00 committed by Cole Robinson
parent dc200aa851
commit ab7e3039e0

View 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;
}