aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/path-info.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-29 17:59:27 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-29 17:59:58 +0000
commita9c0ea30bf81a42dfb7ccca04bb98649a6c34d07 (patch)
treef2522fe8332e4304c8ef8764f35e2a205b6e6853 /src/libstore/path-info.hh
parent71e4c9c505f2418084643c1a68da5c89b82038dd (diff)
Backport fix from #3754 branch
Diffstat (limited to 'src/libstore/path-info.hh')
-rw-r--r--src/libstore/path-info.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/path-info.hh b/src/libstore/path-info.hh
index 27efe5ae9..a67c36bb6 100644
--- a/src/libstore/path-info.hh
+++ b/src/libstore/path-info.hh
@@ -36,10 +36,10 @@ struct PathReferences
template<typename Ref>
StorePathSet PathReferences<Ref>::referencesPossiblyToSelf(const Ref & self) const
{
- StorePathSet references { references };
+ StorePathSet refs { references };
if (hasSelfReference)
- references.insert(self);
- return references;
+ refs.insert(self);
+ return refs;
}
template<typename Ref>