From: Cole Robinson Date: Sat, 5 Oct 2019 18:07:06 +0000 (-0400) Subject: storagefile: Don't access backingStoreRaw directly in FromBackingRelative X-Git-Tag: v5.9.0-rc1~293 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f57336358c11e328ef7c7373a50f26a97697d31b;p=thirdparty%2Flibvirt.git storagefile: Don't access backingStoreRaw directly in FromBackingRelative For the only usage, the rel == parent->backingStoreRaw, so drop the direct access Reviewed-by: Daniel Henrique Barboza Reviewed-by: Michal Privoznik Signed-off-by: Cole Robinson --- diff --git a/src/util/virstoragefile.c b/src/util/virstoragefile.c index bb827e26eb..26b7fe1187 100644 --- a/src/util/virstoragefile.c +++ b/src/util/virstoragefile.c @@ -2626,7 +2626,7 @@ virStorageSourceNewFromBackingRelative(virStorageSourcePtr parent, return NULL; /* store relative name */ - if (VIR_STRDUP(def->relPath, parent->backingStoreRaw) < 0) + if (VIR_STRDUP(def->relPath, rel) < 0) return NULL; if (!(dirname = mdir_name(parent->path))) {