Browse Source

Fix posix.statSync()

v0.7.4-release
Ryan Dahl 15 years ago
parent
commit
4ddfd8aa42
  1. 6
      src/node_file.cc

6
src/node_file.cc

@ -172,10 +172,10 @@ static Handle<Value> Stat(const Arguments& args) {
if (args[1]->IsFunction()) {
ASYNC_CALL(stat, args[1], *path)
} else {
struct stat *s;
int ret = stat(*path, s);
struct stat s;
int ret = stat(*path, &s);
if (ret != 0) return ThrowException(errno_exception(errno));
return scope.Close(BuildStatsObject(s));
return scope.Close(BuildStatsObject(&s));
}
}

Loading…
Cancel
Save