diff --git a/libdnf/dnf-context.cpp b/libdnf/dnf-context.cpp index f7cbf8fa01..f8b5aac039 100644 --- a/libdnf/dnf-context.cpp +++ b/libdnf/dnf-context.cpp @@ -3785,7 +3785,7 @@ dnf_context_load_vars(DnfContext * context) auto priv = GET_PRIVATE(context); priv->vars->clear(); for (auto dir = dnf_context_get_vars_dir(context); *dir; ++dir) - ConfigMain::addVarsFromDir(*priv->vars, std::string(priv->install_root) + *dir); + ConfigMain::addVarsFromDir(*priv->vars, *dir); ConfigMain::addVarsFromEnv(*priv->vars); priv->varsCached = true; }