From 3d9786f40e6037ef5c5a27355df7fba9628b9c67 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 5 Oct 2015 21:11:52 +0200 Subject: Replace append with make --- ber/unmarshal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ber/unmarshal.go b/ber/unmarshal.go index 487fb02..350692b 100644 --- a/ber/unmarshal.go +++ b/ber/unmarshal.go @@ -71,14 +71,14 @@ func (s *state) unmarshalOID() OID { } func (s *state) unmarshalBitString() BitString { - var bs BitString b := s.next() pad := int(b[0]) l := (len(b)-1)*8 - pad + bs := make(BitString, l) for i := 0; i < l; i++ { x := 1 + i/8 y := 7 - uint(i%8) - bs = append(bs, b[x]&(1<