# HG changeset patch # User Evan Schoenberg # Date 1211854235 0 # Node ID f34fbd06984f2722e29b99fee0ee573b62159b61 # Parent ca6bbafcd079acdac8c4801ac138c18157319dc0 Ensure jbi->jb->resources is non-NULL before calling g_hash_table_size() diff -r ca6bbafcd079 -r f34fbd06984f libpurple/protocols/jabber/buddy.c --- 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;