summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorruki <[email protected]>2020-03-25 22:48:28 +0800
committerruki <[email protected]>2020-03-25 10:50:50 +0800
commitc570330bbc7fd11410985a46486e7c5edc66d9bf (patch)
tree8ac47d535579b0760040c5fee251864ffb9a06f9 /core/src
parent357c8504a1421dff16e3c7edc54959efd75f6654 (diff)
fix os.args
Diffstat (limited to 'core/src')
-rw-r--r--core/src/xmake/os/args.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/os/args.c b/core/src/xmake/os/args.c
index 567d70d30..0f907bb8a 100644
--- a/core/src/xmake/os/args.c
+++ b/core/src/xmake/os/args.c
@@ -120,7 +120,7 @@ tb_int_t xm_os_args(lua_State* lua)
// return result
tb_size_t size = tb_string_size(&result);
if (size) lua_pushlstring(lua, tb_string_cstr(&result), size);
- else lua_pushnil(lua);
+ else lua_pushliteral(lua, "");
tb_string_exit(&result);
return 1;
}