diff --git a/src/storage/storage_util.c b/src/storage/storage_util.c index 8e25984d7515e46894ebea88bf2bd7c3d69de262..b344fdfda5d9a8f83788ee9dcf8f4f74a028fa3b 100644 --- a/src/storage/storage_util.c +++ b/src/storage/storage_util.c @@ -3245,8 +3245,8 @@ virStorageBackendPARTEDFindLabel(const char *device, /* Does the on disk match what the pool desired? */ if (STREQ(start, format)) ret = VIR_STORAGE_PARTED_MATCH; - - ret = VIR_STORAGE_PARTED_DIFFERENT; + else + ret = VIR_STORAGE_PARTED_DIFFERENT; cleanup: virCommandFree(cmd);