diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc index 113a7da154..5c5c07e4c4 100644 --- a/src/libstore/gc.cc +++ b/src/libstore/gc.cc @@ -372,9 +372,9 @@ static void addAdditionalRoots(StoreAPI & store, PathSet & roots) string result = runProgram(rootFinder); - Strings paths = tokenizeString(result, "\n"); + StringSet paths = tokenizeString(result, "\n"); - foreach (Strings::iterator, i, paths) { + foreach (StringSet::iterator, i, paths) { if (isInStore(*i)) { Path path = toStorePath(*i); if (roots.find(path) == roots.end() && store.isValidPath(path)) {