pidgin: 9ebef7dc: Use g_list_length(jbi->jb->resources) he...

evands at pidgin.im evands at pidgin.im
Tue May 27 06:45:49 EDT 2008


-----------------------------------------------------------------
Revision: 9ebef7dc91fd3f43f016ceeee02e0a15e2008868
Ancestor: 3a7b90fdf35f2d621bb3e022047f584781a221d6
Author: evands at pidgin.im
Date: 2008-05-27T10:39:37
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/9ebef7dc91fd3f43f016ceeee02e0a15e2008868

Modified files:
        libpurple/protocols/jabber/buddy.c

ChangeLog: 

Use g_list_length(jbi->jb->resources) here, as it's clearer since that's
what's about to be enumerated. Thanks, Sadrul :)

-------------- next part --------------
============================================================
--- libpurple/protocols/jabber/buddy.c	8e94a0b20a3d76b0e62ba906767bd357ab6f66a4
+++ libpurple/protocols/jabber/buddy.c	557cc6c006b4f122764d8b90547958d8c148bae3
@@ -960,7 +960,7 @@ static void jabber_buddy_info_show_if_re
 		}
 #endif
 	} else {
-		gboolean multiple_resources = jbi->resources && (g_hash_table_size(jbi->resources) > 1);
+		gboolean multiple_resources = jbi->jb->resources && (g_list_length(jbi->jb->resources) > 1);
 
 		for(resources = jbi->jb->resources; resources; resources = resources->next) {
 			char *purdy = NULL;


More information about the Commits mailing list