/dev/tomkiewicz/new-smileys: 0505539109c1: Smileys: fix parsing ...

Tomasz Wasilczyk twasilczyk at pidgin.im
Fri Apr 4 17:59:42 EDT 2014


Changeset: 0505539109c1878555215e1aa3ef4ce5e27d0662
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-04 23:59 +0200
Branch:	 default
URL: https://hg.pidgin.im/dev/tomkiewicz/new-smileys/rev/0505539109c1

Description:

Smileys: fix parsing with more than two smiley lists

diffstat:

 libpurple/smiley-parser.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (19 lines):

diff --git a/libpurple/smiley-parser.c b/libpurple/smiley-parser.c
--- a/libpurple/smiley-parser.c
+++ b/libpurple/smiley-parser.c
@@ -92,13 +92,13 @@ purple_smiley_parse(PurpleConversation *
 		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;
 	}



More information about the Commits mailing list