Fix variable leak.

Fixes issue 461
pull/23362/head
Evan Larkin 2010-11-27 03:59:47 -06:00 committed by Ryan Dahl
parent 711196cafa
commit bc02d47b21
1 changed files with 1 additions and 1 deletions

View File

@ -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);