Initialize inputBuf to zero.

This commit is contained in:
Kalervo Kujala 2011-09-09 20:12:38 +03:00
parent 63d3f06265
commit 946c4e2a88

4
pdf.js
View File

@ -1553,7 +1553,7 @@ var CCITTFaxStream = (function() {
this.row = 0;
this.nextLine2D = this.encoding < 0;
this.inputBits = 0;
this.inputBuf = EOF;
this.inputBuf = 0;
this.outputBits = 0;
this.buf = EOF;
@ -3676,7 +3676,7 @@ var PDFDoc = (function() {
if (find(stream, 'startxref', 1024, true)) {
stream.skip(9);
var ch;
while (Lexer.isSpace(ch = stream.getChar())){}
while (Lexer.isSpace(ch = stream.getChar())) {}
var str = '';
while ((ch - '0') <= 9) {
str += ch;