aboutsummaryrefslogtreecommitdiff
path: root/ber/new/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'ber/new/common.go')
-rw-r--r--ber/new/common.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ber/new/common.go b/ber/new/common.go
index 823dc23..feb257e 100644
--- a/ber/new/common.go
+++ b/ber/new/common.go
@@ -15,9 +15,9 @@ func newState(b []byte) *state {
}
func (s *state) subState() *state {
- ss := &state{}
+ ss := state{}
ss.Write(s.next())
- return ss
+ return &ss
}
func (s *state) next() []byte {