diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-04-01 14:19:44 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2010-04-01 14:19:44 +0100 |
commit | f70d003995d67314178e48b1933b7b29cf1dd683 (patch) | |
tree | 7eafc618e68ccc9d35b0e6e3e658164b18c451cd /telepathy-glib/properties-mixin.c | |
parent | 6dad56ec5e502ce68cbf71c6849896881a26f3b5 (diff) | |
download | telepathy-glib-f70d003995d67314178e48b1933b7b29cf1dd683.tar.gz |
Use tp_strdiff instead of strcmp when comparing strings for equality
Diffstat (limited to 'telepathy-glib/properties-mixin.c')
-rw-r--r-- | telepathy-glib/properties-mixin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/telepathy-glib/properties-mixin.c b/telepathy-glib/properties-mixin.c index 6d6d2b86a..894be196a 100644 --- a/telepathy-glib/properties-mixin.c +++ b/telepathy-glib/properties-mixin.c @@ -53,6 +53,7 @@ #include <telepathy-glib/debug-ansi.h> #include <telepathy-glib/errors.h> #include <telepathy-glib/intset.h> +#include <telepathy-glib/util.h> #define DEBUG_FLAG TP_DEBUG_PROPERTIES @@ -497,7 +498,7 @@ tp_properties_mixin_has_property (GObject *obj, const gchar *name, for (i = 0; i < mixin_cls->num_props; i++) { - if (strcmp (mixin_cls->signatures[i].name, name) == 0) + if (!tp_strdiff (mixin_cls->signatures[i].name, name)) { if (property) *property = i; |