From 1a8eb6e3ec9329ee7b61ac2345c6e1d994905813 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 7 May 2010 15:26:33 +0000 Subject: [PATCH] --- src/libexpr/value-to-xml.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libexpr/value-to-xml.cc b/src/libexpr/value-to-xml.cc index c3f352cfb..e751fd300 100644 --- a/src/libexpr/value-to-xml.cc +++ b/src/libexpr/value-to-xml.cc @@ -32,8 +32,10 @@ static void showAttrs(EvalState & state, bool strict, bool location, Bindings & attrs, XMLWriter & doc, PathSet & context, PathSet & drvsSeen) { StringSet names; + foreach (Bindings::iterator, i, attrs) names.insert(i->first); + foreach (StringSet::iterator, i, names) { Attr & a(attrs[state.symbols.create(*i)]);