Skip to content

Commit e365c52

Browse files
committed
Use "/" for wasm's cwd when environment is not avaiable.
1 parent a9262b1 commit e365c52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/file.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ inline static std::string wstring_to_string(const std::wstring &wstr)
5454
inline static std::string get_cwd_from_env()
5555
{
5656
char* value = getenv("PWD");
57-
if (!value) return "(unreachable)";
57+
if (!value) return "/";
5858
return value;
5959
}
6060
#endif

0 commit comments

Comments
 (0)