uv_spawn: Do not set cwd to an empty string

This commit is contained in:
Raoul Hecky 2017-01-18 10:22:02 +01:00
parent 133dc09965
commit 938289528f

View File

@ -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();