diff options
author | John Bailey <rekkanoryo@rekkanoryo.org> | 2009-09-16 15:36:24 +0000 |
---|---|---|
committer | John Bailey <rekkanoryo@rekkanoryo.org> | 2009-09-16 15:36:24 +0000 |
commit | a245c80a0788d33e86c8512606a9cde4ac424553 (patch) | |
tree | 5b2477b5fde7398f0846be846b66238b779797a4 /libpurple/account.c | |
parent | a27b85d8a86ec484a4064bb924425f9889535167 (diff) | |
parent | f0263ba7a7d0ab488519a745fba7b2f36ddc02a7 (diff) | |
download | pidgin-a245c80a0788d33e86c8512606a9cde4ac424553.tar.gz |
merge of '755d7efe6da376f6fbeb9f6d3e08f2d7201aabc7'
and '0848cfc68369ad686459fb7420f1e4613029b294'
Diffstat (limited to 'libpurple/account.c')
-rw-r--r-- | libpurple/account.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/libpurple/account.c b/libpurple/account.c index a8c32ed88e..af2397ea38 100644 --- a/libpurple/account.c +++ b/libpurple/account.c @@ -1206,11 +1206,14 @@ void purple_account_disconnect(PurpleAccount *account) { PurpleConnection *gc; + const char *username; g_return_if_fail(account != NULL); g_return_if_fail(!purple_account_is_disconnected(account)); - purple_debug_info("account", "Disconnecting account %p\n", account); + username = purple_account_get_username(account); + purple_debug_info("account", "Disconnecting account %s (%p)\n", + username ? username : "(null)", account); account->disconnecting = TRUE; @@ -2287,9 +2290,13 @@ void purple_account_add_buddy(PurpleAccount *account, PurpleBuddy *buddy) { PurplePluginProtocolInfo *prpl_info = NULL; - PurpleConnection *gc = purple_account_get_connection(account); + PurpleConnection *gc; PurplePlugin *prpl = NULL; + g_return_if_fail(account != NULL); + g_return_if_fail(buddy != NULL); + + gc = purple_account_get_connection(account); if (gc != NULL) prpl = purple_connection_get_prpl(gc); |