]> git.parisson.com Git - pdf.js.git/commitdiff
Initialize inputBuf to zero.
authorKalervo Kujala <kkujala@>
Fri, 9 Sep 2011 17:12:38 +0000 (20:12 +0300)
committerKalervo Kujala <kkujala@>
Fri, 9 Sep 2011 17:12:38 +0000 (20:12 +0300)
pdf.js

diff --git a/pdf.js b/pdf.js
index ff87078b2ef9a83456e8da9bc6f78b7b4274cfc3..ebce3d1b016310d8f5ecfc4f24ad222ffce4dc80 100644 (file)
--- a/pdf.js
+++ b/pdf.js
@@ -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;