diff --git a/src/nix-store/dotgraph.cc b/src/nix-store/dotgraph.cc index c9837b3e7..667d917f5 100644 --- a/src/nix-store/dotgraph.cc +++ b/src/nix-store/dotgraph.cc @@ -61,7 +61,7 @@ void printDotGraph(ref store, StorePathSet && roots) for (auto & p : store->queryPathInfo(path)->references) { if (p != path) { workList.insert(p.clone()); - cout << makeEdge(std::string(p.to_string()), std::string(p.to_string())); + cout << makeEdge(std::string(p.to_string()), std::string(path.to_string())); } } }