empathy r2604 - trunk/libempathy



Author: xclaesse
Date: Fri Mar  6 11:52:44 2009
New Revision: 2604
URL: http://svn.gnome.org/viewvc/empathy?rev=2604&view=rev

Log:
Added checks to the arguments of empathy_message_equal.

Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>

Modified:
   trunk/libempathy/empathy-message.c

Modified: trunk/libempathy/empathy-message.c
==============================================================================
--- trunk/libempathy/empathy-message.c	(original)
+++ trunk/libempathy/empathy-message.c	Fri Mar  6 11:52:44 2009
@@ -512,6 +512,9 @@
 	EmpathyMessagePriv *priv1 = GET_PRIV (message1);
 	EmpathyMessagePriv *priv2 = GET_PRIV (message2);
 
+	g_return_val_if_fail (EMPATHY_IS_MESSAGE (message1), FALSE);
+	g_return_val_if_fail (EMPATHY_IS_MESSAGE (message2), FALSE);
+
 	if (priv1->id == priv2->id && g_str_hash (priv1->body) == g_str_hash (priv2->body)) {
 		return TRUE;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]