diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 22:53:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 22:53:09 +0100 |
commit | 3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1 (patch) | |
tree | 333877b388cdf906e51fc04b3feca41ea0fe2a6a /src | |
parent | fda6f95774fa3ca0508f3d08bc7cade26a2c5e35 (diff) | |
download | rspamd-3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1.tar.gz rspamd-3a2be8f3d620b5541d9c5a6a26ab9eb0bfeea5e1.zip |
Add tests for tokenizer bug.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_util.c | 2 |
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); } } |