[Telepathy-commits] [telepathy-sofiasip/master] Safer boolean result for tpsip_debug_flag_is_set()

Mikhail Zabaluev mikhail.zabaluev at nokia.com
Mon Oct 20 11:37:52 PDT 2008


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

diff --git a/src/debug.c b/src/debug.c
index 034f77b..5317450 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -63,7 +63,7 @@ void tpsip_debug_set_flags (TpsipDebugFlags new_flags)
 
 gboolean tpsip_debug_flag_is_set (TpsipDebugFlags flag)
 {
-  return flag & tpsip_debug_flags;
+  return (flag & tpsip_debug_flags) ? TRUE : FALSE;
 }
 
 void tpsip_debug (TpsipDebugFlags flag,
-- 
1.5.6.5



More information about the Telepathy-commits mailing list