Skip to content

Commit

Permalink
Use "/" for wasm's cwd when environment is not avaiable.
Browse files Browse the repository at this point in the history
  • Loading branch information
yurydelendik committed Jun 13, 2019
1 parent a9262b1 commit e365c52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inline static std::string wstring_to_string(const std::wstring &wstr)
inline static std::string get_cwd_from_env()
{
char* value = getenv("PWD");
if (!value) return "(unreachable)";
if (!value) return "/";
return value;
}
#endif
Expand Down

0 comments on commit e365c52

Please sign in to comment.