/dev/tomkiewicz/new-smileys: 07185c85c64c: PurpleTrie: Fix a test

Tomasz Wasilczyk twasilczyk at pidgin.im
Wed Apr 2 15:37:39 EDT 2014


Changeset: 07185c85c64c59f1360cbb9624b1752fea3a4ddc
Author:	 Tomasz Wasilczyk <twasilczyk at pidgin.im>
Date:	 2014-04-02 21:37 +0200
Branch:	 default
URL: https://hg.pidgin.im/dev/tomkiewicz/new-smileys/rev/07185c85c64c

Description:

PurpleTrie: Fix a test

diffstat:

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

diffs (12 lines):

diff --git a/libpurple/trie.c b/libpurple/trie.c
--- a/libpurple/trie.c
+++ b/libpurple/trie.c
@@ -594,7 +594,7 @@ purple_trie_add(PurpleTrie *trie, const 
 	priv->records_total_size += rec->word_len;
 	priv->records = purple_record_list_prepend(priv->records_obj_mempool,
 		priv->records, rec);
-	g_hash_table_insert(priv->records_map, priv->records, rec->word);
+	g_hash_table_insert(priv->records_map, rec->word, priv->records);
 
 	return TRUE;
 }



More information about the Commits mailing list