Mercurial > pidgin.yaz
changeset 11520:2fdd2bd7755a
[gaim-migrate @ 13765]
Fix Debian bug #326852, reported by Sean Finney
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 11 Sep 2005 18:29:17 +0000 |
parents | 0dfda214df89 |
children | d41aabad3b7a |
files | src/gtkmain.c |
diffstat | 1 files changed, 9 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkmain.c Sun Sep 11 17:46:01 2005 +0000 +++ b/src/gtkmain.c Sun Sep 11 18:29:17 2005 +0000 @@ -123,9 +123,15 @@ } g_strfreev(names); } else { /* no name given, use the first account */ - account = (GaimAccount *)gaim_accounts_get_all()->data; - ret = 0; - gaim_account_connect(account); + GList *accounts; + + accounts = gaim_accounts_get_all(); + if (accounts != NULL) + { + account = (GaimAccount *)accounts->data; + ret = 0; + gaim_account_connect(account); + } } return ret;