Mercurial > pidgin
changeset 5706:8e618a7111a5
[gaim-migrate @ 6127]
Fixed a segfault when user info is NULL.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Tue, 03 Jun 2003 10:46:21 +0000 |
parents | cd408d69ad2e |
children | b69400aa008e |
files | src/server.c |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/server.c Tue Jun 03 10:27:56 2003 +0000 +++ b/src/server.c Tue Jun 03 10:46:21 2003 +0000 @@ -139,14 +139,17 @@ void serv_finish_login(GaimConnection *gc) { GaimPluginProtocolInfo *prpl_info = NULL; + GaimAccount *account; if (gc != NULL && gc->prpl != NULL) prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl); - if (strlen(gc->account->user_info)) { + account = gaim_connection_get_account(gc); + + if (gaim_account_get_user_info(account) != NULL) { /* g_malloc(strlen(gc->user->user_info) * 4); strncpy_withhtml(buf, gc->user->user_info, strlen(gc->user->user_info) * 4); */ - serv_set_info(gc, gc->account->user_info); + serv_set_info(gc, (char *)gaim_account_get_user_info(account)); /* g_free(buf); */ }