diff options
Diffstat (limited to 'core/src/xmake/os/setenv.c')
| -rw-r--r-- | core/src/xmake/os/setenv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/os/setenv.c b/core/src/xmake/os/setenv.c index be375b2f4..5e3744415 100644 --- a/core/src/xmake/os/setenv.c +++ b/core/src/xmake/os/setenv.c @@ -38,9 +38,9 @@ tb_int_t xm_os_setenv(lua_State *lua) { tb_assert_and_check_return_val(lua, 0); // get the name and value - size_t value_size = 0; - tb_char_t const *name = luaL_checkstring(lua, 1); - tb_char_t const *value = luaL_checklstring(lua, 2, &value_size); + size_t value_size = 0; + tb_char_t const *name = luaL_checkstring(lua, 1); + tb_char_t const *value = luaL_checklstring(lua, 2, &value_size); tb_check_return_val(name, 0); // set it |
