aboutsummaryrefslogtreecommitdiffstats
path: root/ptrie/iterator.go
diff options
context:
space:
mode:
Diffstat (limited to 'ptrie/iterator.go')
-rw-r--r--ptrie/iterator.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ptrie/iterator.go b/ptrie/iterator.go
index 5714bdbc8..787ba09c0 100644
--- a/ptrie/iterator.go
+++ b/ptrie/iterator.go
@@ -14,7 +14,7 @@ type Iterator struct {
}
func NewIterator(trie *Trie) *Iterator {
- return &Iterator{trie: trie, Key: []byte{0}}
+ return &Iterator{trie: trie, Key: make([]byte, 32)}
}
func (self *Iterator) Next() bool {