提交 f5733635 编写于 作者: C Cole Robinson

storagefile: Don't access backingStoreRaw directly in FromBackingRelative

For the only usage, the rel == parent->backingStoreRaw, so drop
the direct access
Reviewed-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
Signed-off-by: NCole Robinson <crobinso@redhat.com>
上级 556f7c68
......@@ -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))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册