From f57336358c11e328ef7c7373a50f26a97697d31b Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Sat, 5 Oct 2019 14:07:06 -0400 Subject: [PATCH] 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 --- src/util/virstoragefile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))) { -- GitLab