[Commits] messageview.c 1.94.2.227 1.94.2.228

pawel at claws-mail.org pawel at claws-mail.org
Mon Feb 13 19:31:11 CET 2012


Update of /home/claws-mail/claws/src
In directory srv:/tmp/cvs-serv1025/src

Modified Files:
      Tag: gtk2
	messageview.c 
Log Message:
2012-02-13 [pawel]	3.8.0cvs29

	* src/messageview.c
		Fix crasher when double clicking on IMAP message and
		MessageView is not shown introduced in cvs21
		Patch by mones

Index: messageview.c
===================================================================
RCS file: /home/claws-mail/claws/src/messageview.c,v
retrieving revision 1.94.2.227
retrieving revision 1.94.2.228
diff -u -d -r1.94.2.227 -r1.94.2.228
--- messageview.c	5 Feb 2012 20:00:35 -0000	1.94.2.227
+++ messageview.c	13 Feb 2012 18:31:09 -0000	1.94.2.228
@@ -2898,6 +2898,9 @@
 	MsgInfo *msg_old = messageview->msginfo;
 	MsgInfo *msg_new = msginfo_update->msginfo;
 
+	if (msg_new == NULL || msg_old == NULL)
+		return FALSE;
+
 	if (strcmp2(msg_new->msgid, msg_old->msgid))
 		return FALSE;
 



More information about the Commits mailing list