diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-26 23:57:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2011-10-26 23:57:58 +0000 |
commit | d8f412571f8768df2d3239e72392dfeabbad1559 (patch) | |
tree | 19d182df05ead7ff8ba7ee00a7d57555e1383fdf /libgo/go/xml/xml.go | |
parent | e0c39d66d4f0607177b1cf8995dda56a667e07b3 (diff) | |
download | gcc-d8f412571f8768df2d3239e72392dfeabbad1559.zip gcc-d8f412571f8768df2d3239e72392dfeabbad1559.tar.gz gcc-d8f412571f8768df2d3239e72392dfeabbad1559.tar.bz2 |
Update Go library to last weekly.
From-SVN: r180552
Diffstat (limited to 'libgo/go/xml/xml.go')
-rw-r--r-- | libgo/go/xml/xml.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libgo/go/xml/xml.go b/libgo/go/xml/xml.go index e7ba44e..85c24bc 100644 --- a/libgo/go/xml/xml.go +++ b/libgo/go/xml/xml.go @@ -390,7 +390,11 @@ func (p *Parser) popElement(t *EndElement) bool { // translations that were associated with the element we just closed. for p.stk != nil && p.stk.kind != stkStart { s := p.pop() - p.ns[s.name.Local] = s.name.Space, s.ok + if s.ok { + p.ns[s.name.Local] = s.name.Space + } else { + delete(p.ns, s.name.Local) + } } return true |