pidgin: 46e40624: Check for SlpMsgPart before printing it ...

qulogic at pidgin.im qulogic at pidgin.im
Mon Mar 14 00:37:51 EDT 2011


----------------------------------------------------------------------
Revision: 46e40624a7592911d980aad01715da1621820bff
Parent:   3c015a7d90d1c18ed418475ac5ed47d189f7bfe5
Author:   qulogic at pidgin.im
Date:     03/13/11 21:04:08
Branch:   im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/46e40624a7592911d980aad01715da1621820bff

Changelog: 

Check for SlpMsgPart before printing it to the debug log. This would
only occur (and somewhat rarely) when verbose debug is on.

Fixes #13116.
Fixes #13284.

Changes against parent 3c015a7d90d1c18ed418475ac5ed47d189f7bfe5

  patched  libpurple/protocols/msn/msg.c

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/msg.c	7328909e14d6942042a87f0dfaa8f8f73344346a
+++ libpurple/protocols/msn/msg.c	02d2d21c04bfced472657d88424f32c77c08f493
@@ -613,7 +613,8 @@ msn_message_show_readable(MsnMessage *ms
 
 	if (msg->msnslp_message)
 	{
-		msn_slpmsgpart_to_string(msg->part, str);
+		if (msg->part)
+			msn_slpmsgpart_to_string(msg->part, str);
 
 		if (purple_debug_is_verbose() && body != NULL)
 		{


More information about the Commits mailing list