From bc02d47b213785f9560f4b9c5426bc16124e89c3 Mon Sep 17 00:00:00 2001 From: Evan Larkin Date: Sat, 27 Nov 2010 03:59:47 -0600 Subject: [PATCH] Fix variable leak. Fixes issue 461 --- lib/fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/fs.js b/lib/fs.js index 972c6edd28..938ffdc81e 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -196,7 +196,7 @@ fs.readSync = function (fd, buffer, offset, length, position) { if (!Buffer.isBuffer(buffer)) { // legacy string interface (fd, length, position, encoding, callback) legacy = true; - encoding = arguments[3]; + var encoding = arguments[3]; position = arguments[2]; length = arguments[1]; buffer = new Buffer(length);