[Telepathy-commits] [telepathy-haze/master] Use tp_strdiff rather than strcmp for NULL-safety

Will Thompson will.thompson at collabora.co.uk
Mon Aug 18 04:02:08 PDT 2008


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

diff --git a/src/connection-manager.c b/src/connection-manager.c
index cf283d9..6d3ae54 100644
--- a/src/connection-manager.c
+++ b/src/connection-manager.c
@@ -144,7 +144,7 @@ _param_filter_string_list (const TpCMParamSpec *paramspec,
     for (; valid_values != NULL; valid_values = valid_values->next)
     {
         const gchar *value = valid_values->data;
-        if (!strcmp (value, str))
+        if (!tp_strdiff (value, str))
             return TRUE;
     }
 
-- 
1.5.6.3



More information about the Telepathy-commits mailing list