[evolution-data-server] ENameSelectorDialog: Fix a potential string comparison crash



commit a6a903484b17a3d35ba084cacd96c6e2d9c15cf3
Author: Matthew Barnes <mbarnes redhat com>
Date:   Thu Nov 4 14:16:17 2010 -0400

    ENameSelectorDialog: Fix a potential string comparison crash

 libedataserverui/e-name-selector-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libedataserverui/e-name-selector-dialog.c b/libedataserverui/e-name-selector-dialog.c
index b759a5e..7beb876 100644
--- a/libedataserverui/e-name-selector-dialog.c
+++ b/libedataserverui/e-name-selector-dialog.c
@@ -896,7 +896,7 @@ search_changed (ENameSelectorDialog *name_selector_dialog)
 
 	user_fields_str = ens_util_populate_user_query_fields (priv->user_query_fields, text, text_escaped);
 
-	if (!strcmp (category, _("Any Category")))
+	if (g_strcmp0 (category, _("Any Category")) == 0)
 		query_string = g_strdup_printf (
 			"(or (beginswith \"file_as\" %s) "
 			"    (beginswith \"full_name\" %s) "



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]