summaryrefslogtreecommitdiffstats
path: root/src/lua/lua_regexp.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-08 13:43:13 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-08 16:35:42 +0100
commit47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736 (patch)
tree5b1f5cbb74b0accc910985c373b9dc4fb41d7c1f /src/lua/lua_regexp.c
parentf98bb456ab710bc3fa99cdbe5383f39c00dcd480 (diff)
downloadrspamd-47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736.tar.gz
rspamd-47e27ce0f8ecf8dff0f9abc0e0fb466a64fdc736.zip
[Feature] Add mmap support to lua_text
Diffstat (limited to 'src/lua/lua_regexp.c')
-rw-r--r--src/lua/lua_regexp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/lua_regexp.c b/src/lua/lua_regexp.c
index 80b752172..1e6122b2e 100644
--- a/src/lua/lua_regexp.c
+++ b/src/lua/lua_regexp.c
@@ -640,7 +640,7 @@ lua_regexp_split (lua_State *L)
rspamd_lua_setclass (L, "rspamd{text}", -1);
t->start = old_start;
t->len = start - old_start;
- t->own = FALSE;
+ t->flags = 0;
}
lua_rawseti (L, -2, ++i);
@@ -665,7 +665,7 @@ lua_regexp_split (lua_State *L)
rspamd_lua_setclass (L, "rspamd{text}", -1);
t->start = end;
t->len = (data + len) - end;
- t->own = FALSE;
+ t->flags = 0;
}
lua_rawseti (L, -2, ++i);