diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-27 10:31:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-04-27 10:31:49 +0100 |
commit | e284214e98abd909e11beb097a5de52168ec0725 (patch) | |
tree | 75bdcd18458a9c797b01e6b520508ce6d0b8c662 /src | |
parent | fc95ba48638d25b92de04a756ebf2cc22bcd3260 (diff) | |
download | rspamd-e284214e98abd909e11beb097a5de52168ec0725.tar.gz rspamd-e284214e98abd909e11beb097a5de52168ec0725.zip |
Slightly improve style.
Diffstat (limited to 'src')
-rw-r--r-- | src/lua/lua_url.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lua/lua_url.c b/src/lua/lua_url.c index 6ed9f06c0..14a4df9a9 100644 --- a/src/lua/lua_url.c +++ b/src/lua/lua_url.c @@ -380,7 +380,7 @@ lua_url_all (lua_State *L) const gchar *text,*end; gint i = 1; size_t length; - const gchar **pos; + const gchar *pos; if (pool == NULL) { lua_pushnil (L); @@ -389,12 +389,12 @@ lua_url_all (lua_State *L) text = luaL_checklstring (L, 2, &length); if (text != NULL) { - *pos = text; + pos = text; end = text + length; lua_newtable (L); - while (*pos <= end) { - url = rspamd_url_get_next (pool, text, pos, NULL); + while (pos <= end) { + url = rspamd_url_get_next (pool, text, &pos, NULL); if (url != NULL) { lua_url = lua_newuserdata (L, sizeof (struct rspamd_lua_url)); |