Browse Source

Slightly improve style.

tags/0.9.0
Vsevolod Stakhov 9 years ago
parent
commit
e284214e98
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/lua/lua_url.c

+ 4
- 4
src/lua/lua_url.c View File

@@ -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));

Loading…
Cancel
Save