summaryrefslogtreecommitdiff
path: root/lib/string_decoder.js
diff options
context:
space:
mode:
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