This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix OS::GetExecutablePath for platform_none

  • Loading branch information...
ry committed Nov 16, 2010
1 parent 8b10828 commit 00a1d61cc860adf19c3ed3ed2e8c2789dc2c4e13
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/node.cc
  2. +1 −1 src/platform_none.cc
View
@@ -1648,7 +1648,7 @@ static void Load(int argc, char *argv[]) {
// as a last ditch effort, fallback on argv[0] ?
process->Set(String::NewSymbol("execPath"), String::New(argv[0]));
} else {
- process->Set(String::NewSymbol("execPath"), String::New(execPath));
+ process->Set(String::NewSymbol("execPath"), String::New(execPath, size));
}
View
@@ -30,7 +30,7 @@ int OS::GetMemory(size_t *rss, size_t *vsize) {
int OS::GetExecutablePath(char *buffer, size_t* size) {
*size = 0;
- return 0;
+ return -1;
}
} // namespace node

0 comments on commit 00a1d61

Please sign in to comment.