projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45a806a
)
Fix posix.statSync()
author
Ryan Dahl
<ry@tinyclouds.org>
Wed, 9 Dec 2009 09:32:19 +0000
(10:32 +0100)
committer
Ryan Dahl
<ry@tinyclouds.org>
Wed, 9 Dec 2009 09:32:19 +0000
(10:32 +0100)
src/node_file.cc
patch
|
blob
|
history
diff --git
a/src/node_file.cc
b/src/node_file.cc
index
19ddb0e
..
1289064
100644
(file)
--- a/
src/node_file.cc
+++ b/
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));
}
}