summaryrefslogtreecommitdiff
path: root/pdf/pdf.go
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf.go')
-rw-r--r--pdf/pdf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf.go b/pdf/pdf.go
index 8881e41..16ea64a 100644
--- a/pdf/pdf.go
+++ b/pdf/pdf.go
@@ -691,8 +691,8 @@ func NewUpdater(document []byte) (*Updater, error) {
xrefOffset, _ := strconv.ParseInt(string(m[1]), 10, 64)
lastXrefOffset := xrefOffset
- loadedXrefs := map[int64]struct{}{}
- loadedEntries := map[uint]struct{}{}
+ loadedXrefs := make(map[int64]struct{})
+ loadedEntries := make(map[uint]struct{})
var throwawayStack []Object
for {