aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_text.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-11-06 18:56:18 +0600
committerGitHub <noreply@github.com>2024-11-06 18:56:18 +0600
commitc763d4bb58423d1e356263d989a81c7546e577c5 (patch)
treeb943da3d6b7097b2b897c7236c1009ae46185702 /src/lua/lua_text.c
parentebf6f29f301c06b9090fe11cb3865b2759f204e3 (diff)
parentb5ba154e32a7c72a2be852b50a92a7c681f5da04 (diff)
downloadrspamd-c763d4bb58423d1e356263d989a81c7546e577c5.tar.gz
rspamd-c763d4bb58423d1e356263d989a81c7546e577c5.zip
Merge branch 'master' into master
Diffstat (limited to 'src/lua/lua_text.c')
-rw-r--r--src/lua/lua_text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_text.c b/src/lua/lua_text.c
index 4478314f1..3342fc95c 100644
--- a/src/lua/lua_text.c
+++ b/src/lua/lua_text.c
@@ -312,14 +312,14 @@ lua_check_text_or_string(lua_State *L, int pos)
}
struct rspamd_lua_text *
-lua_new_text(lua_State *L, const char *start, gsize len, gboolean own)
+lua_new_text(lua_State *L, const char *start, gsize len, gboolean allocate_memory)
{
struct rspamd_lua_text *t;
t = lua_newuserdata(L, sizeof(*t));
t->flags = 0;
- if (own) {
+ if (allocate_memory) {
char *storage;
if (len > 0) {