Skip to content

Commit

Permalink
fix global var leak in binary_parser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
aheckmann committed Oct 29, 2010
1 parent 6e632a6 commit cdd129a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/mongodb/bson/binary_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ p.encode_int64 = function(number) {
p.decode_utf8 = function(a) {
var string = "";
var i = 0;
var c = c1 = c2 = 0;
var c, c1, c2;
c = c1 = c2 = 0;

while ( i < a.length ) {
c = a.charCodeAt(i);
Expand Down

0 comments on commit cdd129a

Please sign in to comment.