Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

fs: fix typo in fs.readFile of lying size=0 stat

  • Loading branch information...
Shigeki Ohtsu authored and bnoordhuis committed Jun 12, 2012
1 parent 517cea3 commit 4eb2804db9e3bbc06ebda6296620ce5bf6f7b02e
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fs.js
@@ -167,7 +167,7 @@ fs.readFile = function(path, encoding_) {
fs.close(fd, function(er) {
if (size === 0) {
// collected the data into the buffers list.
buffer = Buffer.concat(buffer.length, pos);
buffer = Buffer.concat(buffers, pos);
}

if (encoding) buffer = buffer.toString(encoding);

0 comments on commit 4eb2804

Please sign in to comment.
You can’t perform that action at this time.