Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix OS::GetExecutablePath for platform_none

  • Loading branch information...
commit 00a1d61cc860adf19c3ed3ed2e8c2789dc2c4e13 1 parent 8b10828
@ry ry authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  src/node.cc
  2. +1 −1  src/platform_none.cc
View
2  src/node.cc
@@ -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
2  src/platform_none.cc
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.