summaryrefslogtreecommitdiff
path: root/src/tsg_lua_func.cpp
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-07-11 10:45:50 +0000
committer“pengxuanzheng” <[email protected]>2022-07-11 10:45:50 +0000
commit3be5cb4cd6f78d6830eb058f0ba23f4369670fd3 (patch)
tree59832c1c16edb3c1585943d94212ac83aeac48d5 /src/tsg_lua_func.cpp
parent1331a969227d64616d798e6838e257ebb603ed2d (diff)
🐞 fix: lua脚本返回空值,对应的out_len修改为0bugfix-fujian
Diffstat (limited to 'src/tsg_lua_func.cpp')
-rw-r--r--src/tsg_lua_func.cpp1
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: