Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-12-05 02:20:34 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-05 02:58:50 +0300
commita0159b4b295f69e5653ef96d88de579746dcfdc8 (patch)
tree3e8a2536784c09bd4fb7c6e6d88ecff2dab20c7b /lib/string_decoder.js
parentfbdff52b447efd21c5a552bc47a113ffbe6e4d95 (diff)
Fix global leaks
Diffstat (limited to 'lib/string_decoder.js')
-rw-r--r--lib/string_decoder.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/string_decoder.js b/lib/string_decoder.js
index 3ed28390476..00a1bcb495e 100644
--- a/lib/string_decoder.js
+++ b/lib/string_decoder.js
@@ -49,7 +49,7 @@ StringDecoder.prototype.write = function(buffer) {
// Figure out if one of the last i bytes of our buffer announces an
// incomplete char.
for (; i > 0; i--) {
- c = buffer[buffer.length - i];
+ var c = buffer[buffer.length - i];
// See http://en.wikipedia.org/wiki/UTF-8#Description