]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storagefile: Don't access backingStoreRaw directly in FromBackingRelative
authorCole Robinson <crobinso@redhat.com>
Sat, 5 Oct 2019 18:07:06 +0000 (14:07 -0400)
committerCole Robinson <crobinso@redhat.com>
Fri, 11 Oct 2019 18:25:59 +0000 (14:25 -0400)
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>
src/util/virstoragefile.c

index bb827e26eba50bd2aee81128932504e63f45d905..26b7fe1187b4ec960e97ff29f44a31cf767e8baa 100644 (file)
@@ -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))) {