Browse Source

Fix variable leak.

Fixes issue 461
v0.7.4-release
Evan Larkin 14 years ago
committed by Ryan Dahl
parent
commit
bc02d47b21
  1. 2
      lib/fs.js

2
lib/fs.js

@ -196,7 +196,7 @@ fs.readSync = function (fd, buffer, offset, length, position) {
if (!Buffer.isBuffer(buffer)) { if (!Buffer.isBuffer(buffer)) {
// legacy string interface (fd, length, position, encoding, callback) // legacy string interface (fd, length, position, encoding, callback)
legacy = true; legacy = true;
encoding = arguments[3]; var encoding = arguments[3];
position = arguments[2]; position = arguments[2];
length = arguments[1]; length = arguments[1];
buffer = new Buffer(length); buffer = new Buffer(length);

Loading…
Cancel
Save