diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index 2feda67699e9d5437b950c0689d9d5b4826a7fe0..c9b6187fc724e5e5222d0750a0033ea6187def64 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -1591,7 +1591,7 @@ virStorageFileChainLookup(virStorageSourcePtr chain, if (idx == i) break; } else { - if (STREQ(name, chain->relPath)) + if (STREQ_NULLABLE(name, chain->relPath)) break; if (nameIsFile && (chain->type == VIR_STORAGE_TYPE_FILE || chain->type == VIR_STORAGE_TYPE_BLOCK)) {