Skip to content

Commit

Permalink
pdf: avoid infinite loop on missing page in Reader.Page
Browse files Browse the repository at this point in the history
Fixes rsc#18.
  • Loading branch information
rsc committed Dec 14, 2017
1 parent 1d34785 commit afe0640
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions page.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Search:
num--
}
}
break
}
return Page{}
}
Expand Down

0 comments on commit afe0640

Please sign in to comment.