aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.c
diff options
context:
space:
mode:
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r--libempathy/empathy-message.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 42e4a45a6..d23048a20 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -512,6 +512,9 @@ empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2)
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;
}