mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
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 <danielhb413@gmail.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
556f7c68a0
commit
f57336358c
@ -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))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user