diff options
Diffstat (limited to 'core/src/xmake/process/openv.c')
| -rwxr-xr-x | core/src/xmake/process/openv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/src/xmake/process/openv.c b/core/src/xmake/process/openv.c index 8f99c4535..692d18754 100755 --- a/core/src/xmake/process/openv.c +++ b/core/src/xmake/process/openv.c @@ -120,9 +120,8 @@ tb_int_t xm_process_openv(lua_State* lua) // init process tb_process_ref_t process = tb_process_init(shellname, argv, &attr); - - // save the process reference - lua_pushlightuserdata(lua, process); + if (process) lua_pushlightuserdata(lua, process); + else lua_pushnil(lua); // exit argv if (argv) tb_free(argv); |
