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

fs: fix fs.readFileSync to work on real empty file

  • Loading branch information...
Shigeki Ohtsu authored and bnoordhuis committed Jun 12, 2012
1 parent 4eb2804 commit e3a2dd1b13344a8347265ab0f46181de33b1b1ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/fs.js
@@ -223,7 +223,7 @@ fs.readFileSync = function(path, encoding) {
if (size !== 0) {
done = pos >= size;
} else {
done = bytesRead > 0;
done = bytesRead >= 0;
}
}

0 comments on commit e3a2dd1

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