Skip to content

Commit

Permalink
Reset lastStartElement in Decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiburjack committed Feb 14, 2022
1 parent bfe1741 commit 80c1b49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ type decoder struct {
attrs []Attr
r int
w int
read byte
write byte
top byte
lastStartElement bool
}
Expand Down Expand Up @@ -103,6 +101,7 @@ func (thiz *decoder) Reset(r io.Reader) {
thiz.attrs = thiz.attrs[:0]
thiz.bb = thiz.bb[:0]
thiz.top = 0
thiz.lastStartElement = false
}

func (thiz *decoder) skipWhitespaces(b byte) (byte, error) {
Expand Down

0 comments on commit 80c1b49

Please sign in to comment.