Fix p2p migration without a passed uri.

This commit is contained in:
Cole Robinson 2009-10-22 14:51:30 -04:00
parent 48a7637d9f
commit 64f920d056

View File

@ -3217,7 +3217,7 @@ virDomainMigrate (virDomainPtr domain,
char *dstURI = NULL;
if (uri == NULL) {
dstURI = virConnectGetURI(dconn);
if (!uri)
if (!dstURI)
return NULL;
}