Permalink
Browse files

Don't leak a tmp_length variable in the global namespace

  • Loading branch information...
1 parent 5bed95b commit cd8c37a36232795b0230378b89c59659bf37694a Sandro Santilli committed Mar 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lzma_worker.js
View
@@ -1105,7 +1105,7 @@ var LZMA = (function () {
this$static.length_0 = N1_longLit;
} else {
///NOTE: If there is a problem with the decoder because of the length, you can always set the length to -1 (N1_longLit) which means unknown.
- tmp_length = parseInt(hex_length, 16);
+ var tmp_length = parseInt(hex_length, 16);
/// If the length is too long to handle, just set it to unknown.
if (tmp_length > 4294967295) {
this$static.length_0 = N1_longLit;

0 comments on commit cd8c37a

Please sign in to comment.