Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/buddy.c @ 23214:f34fbd06984f
Ensure jbi->jb->resources is non-NULL before calling g_hash_table_size()
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Tue, 27 May 2008 02:10:35 +0000 |
parents | 646e96069fcd |
children | bac674d6dcf5 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/buddy.c Tue May 27 01:38:38 2008 +0000 +++ b/libpurple/protocols/jabber/buddy.c Tue May 27 02:10:35 2008 +0000 @@ -960,7 +960,7 @@ } #endif } else { - gboolean multiple_resources = g_hash_table_size(jbi->jb->resources) > 1; + gboolean multiple_resources = jbi->jb->resources && (g_hash_table_size(jbi->jb->resources) > 1); for(resources = jbi->jb->resources; resources; resources = resources->next) { char *purdy = NULL;