comparison libpurple/protocols/jabber/jabber.c @ 26850:966d2f2f86c8

Don't crash when the caps cb is NULL and don't corrupt jabber_identities
author Paul Aurich <paul@darkrain42.org>
date Fri, 01 May 2009 18:59:31 +0000
parents f67f24008334
children 93bf089e6233 684690dbda4a
comparison
equal deleted inserted replaced
26849:47d03538ee3f 26850:966d2f2f86c8
1805 ident = g_new0(JabberIdentity, 1); 1805 ident = g_new0(JabberIdentity, 1);
1806 ident->category = g_strdup(category); 1806 ident->category = g_strdup(category);
1807 ident->type = g_strdup(type); 1807 ident->type = g_strdup(type);
1808 ident->lang = g_strdup(lang); 1808 ident->lang = g_strdup(lang);
1809 ident->name = g_strdup(name); 1809 ident->name = g_strdup(name);
1810 jabber_identities = g_list_append(jabber_identities, ident); 1810 jabber_identities = g_list_prepend(jabber_identities, ident);
1811 } 1811 }
1812 1812
1813 static void jabber_identities_destroy(void) 1813 static void jabber_identities_destroy(void)
1814 { 1814 {
1815 while (jabber_identities) { 1815 while (jabber_identities) {