From: Daniel P. Berrange Date: Fri, 17 Jul 2009 12:33:24 +0000 (+0100) Subject: Fix typo in storage cloning X-Git-Tag: v0.7.0~124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cc33bfe20ca0c12cf57d5db3625d4bf787b95d5;p=thirdparty%2Flibvirt.git Fix typo in storage cloning --- diff --git a/src/storage_backend.c b/src/storage_backend.c index 166480498b..67815d7227 100644 --- a/src/storage_backend.c +++ b/src/storage_backend.c @@ -567,7 +567,7 @@ virStorageBackendGetBuildVolFromFunction(virConnectPtr conn, (inputvol->type == VIR_STORAGE_VOL_FILE && inputvol->target.format != VIR_STORAGE_VOL_FILE_RAW)) { - if ((tool_type = virStorageBackendFindFSImageTool(NULL)) != -1) { + if ((tool_type = virStorageBackendFindFSImageTool(NULL)) < 0) { virStorageReportError(conn, VIR_ERR_INTERNAL_ERROR, "%s", _("creation of non-raw file images is " "not supported without qemu-img."));