diff --git a/src/file.js b/src/file.js index 05a8496ead1..1c61ddecced 100644 --- a/src/file.js +++ b/src/file.js @@ -52,7 +52,7 @@ node.fs.File = function (options) { self.encoding = node.RAW; } //node.debug("encoding: opts=" + options.encoding + " self=" + self.encoding); - self.fd = options.fd || null; + self.fd = typeof options.fd != 'undefined' ? options.fd : null; var actionQueue = [];