[Telepathy-commits] [telepathy-mission-control/master] Dispatcher: match_property: Use "!!" to compare booleans

Alban Crequy alban.crequy at collabora.co.uk
Mon Nov 24 05:19:45 PST 2008


---
 src/mcd-dispatcher.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mcd-dispatcher.c b/src/mcd-dispatcher.c
index 08be383..fcf3d64 100644
--- a/src/mcd-dispatcher.c
+++ b/src/mcd-dispatcher.c
@@ -924,8 +924,8 @@ match_property (GHashTable *channel_properties,
             return FALSE;
         }
 
-        if (g_value_get_boolean (filter_value) !=
-            g_value_get_boolean (channel_value))
+        if (!!g_value_get_boolean (filter_value) !=
+            !!g_value_get_boolean (channel_value))
         {
             /* the content does not match */
             return FALSE;
-- 
1.5.6.5




More information about the Telepathy-commits mailing list