diff options
| author | “pengxuanzheng” <[email protected]> | 2022-07-11 10:45:50 +0000 |
|---|---|---|
| committer | “pengxuanzheng” <[email protected]> | 2022-07-11 10:45:50 +0000 |
| commit | 3be5cb4cd6f78d6830eb058f0ba23f4369670fd3 (patch) | |
| tree | 59832c1c16edb3c1585943d94212ac83aeac48d5 /src/tsg_lua_func.cpp | |
| parent | 1331a969227d64616d798e6838e257ebb603ed2d (diff) | |
🐞 fix: lua脚本返回空值,对应的out_len修改为0bugfix-fujian
Diffstat (limited to 'src/tsg_lua_func.cpp')
| -rw-r--r-- | src/tsg_lua_func.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tsg_lua_func.cpp b/src/tsg_lua_func.cpp index 4a95ab1..61ec5f8 100644 --- a/src/tsg_lua_func.cpp +++ b/src/tsg_lua_func.cpp @@ -705,6 +705,7 @@ int tsg_lua_exec_file(tsg_lua_handle lua, const char *script, const char *in, si debuginfo("script return nil", __FILE__, __LINE__); actual_out_type = NIL; *out_type = NIL; + *out_len = 0; return_value = ERR_RETUNR_NIL; break; case LUA_TSTRING: |
