Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Fix posix.statSync()
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Dec 9, 2009
1 parent 45a806a commit 4ddfd8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_file.cc
Expand Up @@ -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));
}
}

Expand Down

1 comment on commit 4ddfd8a

@fictorial
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right on. Thanks ry.

Please sign in to comment.