aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-message.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-03-06 19:53:04 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-03-06 19:53:04 +0800
commit88ebaf214ba75b41c1626c0a5bddce0e31febe41 (patch)
tree85425cd4da229531f407d186f8bb5fac1b12b9fe /libempathy/empathy-message.c
parentd1a9f072f47ac83e9ea58829cf6e74a2592377b9 (diff)
downloadgsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar.gz
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar.bz2
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar.lz
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar.xz
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.tar.zst
gsoc2013-empathy-88ebaf214ba75b41c1626c0a5bddce0e31febe41.zip
Call GET_PRIV after checking the parameters of empathy_message_equal.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2610
Diffstat (limited to 'libempathy/empathy-message.c')
-rw-r--r--libempathy/empathy-message.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index d23048a20..24a43788c 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -509,12 +509,15 @@ empathy_message_get_unique_id (EmpathyMessage *message)
gboolean
empathy_message_equal (EmpathyMessage *message1, EmpathyMessage *message2)
{
- EmpathyMessagePriv *priv1 = GET_PRIV (message1);
- EmpathyMessagePriv *priv2 = GET_PRIV (message2);
+ EmpathyMessagePriv *priv1;
+ EmpathyMessagePriv *priv2;
g_return_val_if_fail (EMPATHY_IS_MESSAGE (message1), FALSE);
g_return_val_if_fail (EMPATHY_IS_MESSAGE (message2), FALSE);
+ priv1 = GET_PRIV (message1);
+ priv2 = GET_PRIV (message2);
+
if (priv1->id == priv2->id && g_str_hash (priv1->body) == g_str_hash (priv2->body)) {
return TRUE;
}