[gaim-migrate @ 15609]

Sun, 12 Feb 2006 16:28:17 +0000

author
Evan Schoenberg <evands@pidgin.im>
date
Sun, 12 Feb 2006 16:28:17 +0000
changeset 13244
7f3fee64e172
parent 13243
5a127fc7db90
child 13245
3c026039efc5

[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.

src/protocols/msn/switchboard.c file | annotate | diff | comparison | revisions
--- 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);
 }

mercurial