]> source.dussan.org Git - rspamd.git/commitdiff
Slightly improve style.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Apr 2015 09:31:49 +0000 (10:31 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 27 Apr 2015 09:31:49 +0000 (10:31 +0100)
src/lua/lua_url.c

index 6ed9f06c08c49fa99732116806c878abd547f2a5..14a4df9a9d8af9ffd335445537c863a7f7577507 100644 (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));