From 53013e8534c6e8340a7aefde55eb10164c8a3d61 Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Sat, 30 May 2009 22:48:26 +0100 Subject: Cope with status being NULL --- libempathy-gtk/empathy-presence-chooser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy-gtk') diff --git a/libempathy-gtk/empathy-presence-chooser.c b/libempathy-gtk/empathy-presence-chooser.c index 4fd524e64..9f8c568c5 100644 --- a/libempathy-gtk/empathy-presence-chooser.c +++ b/libempathy-gtk/empathy-presence-chooser.c @@ -432,7 +432,7 @@ ui_set_custom_state (EmpathyPresenceChooser *self, gtk_entry_set_icon_from_icon_name (GTK_ENTRY (entry), GTK_ENTRY_ICON_PRIMARY, icon_name); - gtk_entry_set_text (GTK_ENTRY (entry), status); + gtk_entry_set_text (GTK_ENTRY (entry), status == NULL ? "" : status); presence_chooser_set_favorite_icon (self); priv->block_changed--; @@ -873,7 +873,7 @@ presence_chooser_presence_changed_cb (EmpathyPresenceChooser *chooser) COL_STATUS_TEXT, &m_status, -1); - match = !strcmp (status, m_status); + match = !tp_strdiff (status, m_status); g_free (m_status); -- cgit v1.2.3