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

Commit

Permalink
fix test-fs-realpath
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs authored and ry committed Sep 5, 2011
1 parent fcfec07 commit ef523e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/node_file.cc
Expand Up @@ -92,7 +92,7 @@ static void After(uv_fs_t *req) {
// for a success, which is possible.
if (req->result == -1) {
// If the request doesn't have a path parameter set.

if (!req->path) {
argv[0] = ErrnoException(req->errorno);
} else {
Expand Down Expand Up @@ -154,7 +154,7 @@ static void After(uv_fs_t *req) {
break;

case UV_FS_READLINK:
argv[1] = String::New(static_cast<char*>(req->ptr), req->result);
argv[1] = String::New(static_cast<char*>(req->ptr));
break;

case UV_FS_READ:
Expand Down Expand Up @@ -441,7 +441,7 @@ static Handle<Value> ReadLink(const Arguments& args) {
ASYNC_CALL(readlink, args[1], *path)
} else {
SYNC_CALL(readlink, *path, *path)
return scope.Close(String::New((char*)SYNC_REQ.ptr, SYNC_REQ.result));
return scope.Close(String::New((char*)SYNC_REQ.ptr));
}
}
#endif // __POSIX__
Expand Down

0 comments on commit ef523e5

Please sign in to comment.