summaryrefslogtreecommitdiff
path: root/tp-account-widgets/tpaw-account-widget.c
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-05-13 10:25:27 +0100
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-20 11:03:07 +0100
commitdf2ff24c6a132e4b6cd40c9f82a24cec8c04a4aa (patch)
tree0c6d1e920b697f865b1db4146498658ee4f5962e /tp-account-widgets/tpaw-account-widget.c
parent72b6c3a680852d93aba90bfd87db0b7477b3f4f5 (diff)
downloadtelepathy-account-widgets-df2ff24c6a132e4b6cd40c9f82a24cec8c04a4aa.tar.gz
tp-account-widgets: use g_strcmp0 instead of strcmp
There was no bug in this code, but I noticed the usage of strcmp because of compilation errors caused by some changes to the includes. g_strcmp0 is safer as it handles NULLs. https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'tp-account-widgets/tpaw-account-widget.c')
-rw-r--r--tp-account-widgets/tpaw-account-widget.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tp-account-widgets/tpaw-account-widget.c b/tp-account-widgets/tpaw-account-widget.c
index 2ef43f4b..9080d112 100644
--- a/tp-account-widgets/tpaw-account-widget.c
+++ b/tp-account-widgets/tpaw-account-widget.c
@@ -766,7 +766,7 @@ accounts_widget_generic_setup (TpawAccountWidget *self,
gtk_widget_show (widget);
widget = gtk_entry_new ();
- if (strcmp (tp_connection_manager_param_get_name (param),
+ if (g_strcmp0 (tp_connection_manager_param_get_name (param),
"account") == 0)
{
g_signal_connect (widget, "realize",