changeset 13243:70809b5c5f86

[gaim-migrate @ 15609] This debug log crashed because it a %s was passed NULL. The source of such malformedness should be fixed, but making the log not crash means we can see what's happening. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Sun, 12 Feb 2006 16:28:17 +0000
parents cdd107258f11
children c97c76d9d347
files src/protocols/msn/switchboard.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/msn/switchboard.c	Sun Feb 12 16:25:54 2006 +0000
+++ b/src/protocols/msn/switchboard.c	Sun Feb 12 16:28:17 2006 +0000
@@ -1138,7 +1138,8 @@
 	swboard = trans->data;
 
 	gaim_debug_info("msn", "xfr_error %i for %s: trans %x, command %s, reason %i\n",
-					error, swboard->im_user, trans, trans->command, reason);
+					error, (swboard->im_user ? swboard->im_user : "(null)"), trans,
+					(trans->command ? trans->command : "(null)"), reason);
 
 	swboard_error_helper(swboard, reason, swboard->im_user);
 }