pidgin/purple-plugin-pack

ed12137f6e3f
Parents c52ccd4572fb
Children 9388973d2c42
A callback can reset the message to NULL before we catch it. Let's not crash
when that happens.
--- a/slashexec/slashexec.c Tue Sep 04 04:33:37 2007 -0400
+++ b/slashexec/slashexec.c Tue Sep 04 20:57:32 2007 -0400
@@ -362,6 +362,9 @@
se_sending_im_msg_cb(PurpleAccount *account, const char *who, char **message)
{
PurpleConversation *conv;
+ if (message == NULL || *message == NULL) /* It's possible if some other callback to
+ to the signal resets the message */
+ return;
conv = purple_find_conversation_with_account(PURPLE_CONV_TYPE_IM, who, account);
se_sending_msg_helper(conv, message);
}