Smileys: fix parsing with more than two smiley lists

Fri, 04 Apr 2014 23:59:34 +0200

author
Tomasz Wasilczyk <twasilczyk@pidgin.im>
date
Fri, 04 Apr 2014 23:59:34 +0200
changeset 35760
0505539109c1
parent 35759
cf4d3e9df570
child 35761
dfbba8ed898d

Smileys: fix parsing with more than two smiley lists

libpurple/smiley-parser.c file | annotate | diff | comparison | revisions
--- a/libpurple/smiley-parser.c	Fri Apr 04 23:42:11 2014 +0200
+++ b/libpurple/smiley-parser.c	Fri Apr 04 23:59:34 2014 +0200
@@ -92,13 +92,13 @@
 		tries = &tries_remote;
 	if (custom_trie != NULL) {
 		if (tries)
-			tries->next = &tries_custom;
+			g_slist_last(tries)->next = &tries_custom;
 		else
 			tries = &tries_custom;
 	}
 	if (theme_trie != NULL) {
 		if (tries)
-			tries->next = &tries_theme;
+			g_slist_last(tries)->next = &tries_theme;
 		else
 			tries = &tries_theme;
 	}

mercurial