summaryrefslogtreecommitdiff
path: root/lib/string_decoder.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-12-04 15:20:34 -0800
committerRyan Dahl <ry@tinyclouds.org>2010-12-04 15:58:50 -0800
commita0159b4b295f69e5653ef96d88de579746dcfdc8 (patch)
tree3e8a2536784c09bd4fb7c6e6d88ecff2dab20c7b /lib/string_decoder.js
parentfbdff52b447efd21c5a552bc47a113ffbe6e4d95 (diff)
downloadandroid-node-v8-a0159b4b295f69e5653ef96d88de579746dcfdc8.tar.gz
android-node-v8-a0159b4b295f69e5653ef96d88de579746dcfdc8.tar.bz2
android-node-v8-a0159b4b295f69e5653ef96d88de579746dcfdc8.zip
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 3ed2839047..00a1bcb495 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