diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-05-07T15·26+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2010-05-07T15·26+0000 |
commit | 1a8eb6e3ec9329ee7b61ac2345c6e1d994905813 (patch) | |
tree | 1669f56bb4037279809183a90a13ea0c61f2e5eb /src/libexpr | |
parent | 83dfa898706e1faa491b3a50ea20baf60abda387 (diff) |
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/value-to-xml.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/value-to-xml.cc b/src/libexpr/value-to-xml.cc index c3f352cfbd05..e751fd300fdb 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)]); |