]> git.parisson.com Git - pdf.js.git/commitdiff
Initialize inputBuf.
authorKalervo Kujala <kkujala@>
Thu, 8 Sep 2011 20:10:49 +0000 (23:10 +0300)
committerKalervo Kujala <kkujala@>
Thu, 8 Sep 2011 20:10:49 +0000 (23:10 +0300)
Fix also another jslint error.

pdf.js

diff --git a/pdf.js b/pdf.js
index c36462714f5c285d45d4a11843122cf9268c0386..797416c39baacb79c5be51e7caccf1af419b0a89 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;
+    this.inputBuf = EOF;
     this.outputBits = 0;
     this.buf = EOF;
 
@@ -3676,8 +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;