From 80c1b49147fbe02478dad45e3c32245ff4727165 Mon Sep 17 00:00:00 2001 From: kaiburjack Date: Mon, 14 Feb 2022 17:02:06 +0100 Subject: [PATCH] Reset lastStartElement in Decoder --- decoder.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/decoder.go b/decoder.go index 934b621..73b73b6 100644 --- a/decoder.go +++ b/decoder.go @@ -32,8 +32,6 @@ type decoder struct { attrs []Attr r int w int - read byte - write byte top byte lastStartElement bool } @@ -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) {