summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author“pengxuanzheng” <[email protected]>2022-07-11 10:45:50 +0000
committer“pengxuanzheng” <[email protected]>2022-07-12 07:28:14 +0000
commitb19d688c161dacfd4a48a12970a5185c4c1b6437 (patch)
tree21c542f8155e40ae022d8caa9b82c1fca66ff859 /src
parent368976573d409c5eda178fc5081bd47e0f1a6220 (diff)
🐞 fix: lua脚本返回空值,对应的out_len修改为0
Diffstat (limited to 'src')
-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 aee6b72..20eb3f1 100644
--- a/src/tsg_lua_func.cpp
+++ b/src/tsg_lua_func.cpp
@@ -741,6 +741,7 @@ int tsg_lua_exec_file(tsg_lua_handle L, const char *script, const char *in, size
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: