From 81f0d4d94ef5234eeb647831b8846a2438bb0f74 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Wed, 9 Oct 2013 18:57:50 -0300 Subject: [PATCH] Fix bug on if condition. --- message.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/message.c b/message.c index 35b5d1c..4104cff 100644 --- a/message.c +++ b/message.c @@ -55,7 +55,7 @@ gboolean message_incoming(GIOChannel *channel, GIOCondition cond, gpointer data) } else { struct friend *friend; friend = friend_get_by_address(iaddress); - if (friend); + if (friend) g_source_remove_by_user_data(friend); } g_object_unref(address); -- 2.20.1