uv_spawn: Do not set cwd to an empty string
This commit is contained in:
parent
133dc09965
commit
938289528f
@ -123,7 +123,9 @@ public:
|
||||
po.args = args;
|
||||
po.env = env;
|
||||
|
||||
po.cwd = poCwd.data();
|
||||
if (!poCwd.empty()) {
|
||||
po.cwd = poCwd.data();
|
||||
}
|
||||
po.flags = poFlags;
|
||||
po.stdio_count = poStdio.size();
|
||||
po.stdio = poStdio.data();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user