aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-20 22:53:09 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-20 22:53:09 +0100
commit3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1 (patch)
tree333877b388cdf906e51fc04b3feca41ea0fe2a6a /src
parentfda6f95774fa3ca0508f3d08bc7cade26a2c5e35 (diff)
downloadrspamd-3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1.tar.gz
rspamd-3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1.zip
Add tests for tokenizer bug.
Diffstat (limited to 'src')
-rw-r--r--src/lua/lua_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_util.c b/src/lua/lua_util.c
index 37bf98ead..f1c848201 100644
--- a/src/lua/lua_util.c
+++ b/src/lua/lua_util.c
@@ -330,7 +330,7 @@ lua_util_tokenize_text (lua_State *L)
for (i = 0; i < res->len; i ++) {
w = &g_array_index (res, rspamd_fstring_t, i);
lua_pushlstring (L, w->begin, w->len);
- lua_settable (L, i + 1);
+ lua_rawseti (L, -2, i + 1);
}
}