Mercurial > pidgin
comparison src/gtkaccount.c @ 10014:41ef089e3df8
[gaim-migrate @ 10932]
(12:24:50) nosnilmot: LSchiere: this fixes a crash in HEAD when creating a
new account with the first prpl in the list:
http://nosnilmot.com/patches/gaim-2.0.0cvs-newaccountcrashfix.patch
(12:25:18) datallah: nosnilmot: that would be my fault...
(12:25:23) nosnilmot: indeed it is
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sat, 11 Sep 2004 16:25:04 +0000 |
parents | ab5db2c5da79 |
children | 9f358a718f38 |
comparison
equal
deleted
inserted
replaced
10013:f1f239fa8973 | 10014:41ef089e3df8 |
---|---|
1568 | 1568 |
1569 if (dialog->account == NULL) { | 1569 if (dialog->account == NULL) { |
1570 /* Select the first prpl in the list*/ | 1570 /* Select the first prpl in the list*/ |
1571 GList *prpl_list = gaim_plugins_get_protocols(); | 1571 GList *prpl_list = gaim_plugins_get_protocols(); |
1572 if (prpl_list != NULL) | 1572 if (prpl_list != NULL) |
1573 dialog->protocol_id = ((GaimPlugin *) prpl_list->data)->info->id; | 1573 dialog->protocol_id = g_strdup(((GaimPlugin *) prpl_list->data)->info->id); |
1574 } | 1574 } |
1575 else | 1575 else |
1576 { | 1576 { |
1577 dialog->protocol_id = | 1577 dialog->protocol_id = |
1578 g_strdup(gaim_account_get_protocol_id(dialog->account)); | 1578 g_strdup(gaim_account_get_protocol_id(dialog->account)); |