[Xfce4-commits] <xfce4-settings:master> Use g_strcmp0 instead of strcmp.

Jérôme Guelfucci noreply at xfce.org
Tue Jan 19 19:34:46 CET 2010


Updating branch refs/heads/master
         to 14af09b9c4ba5c9c6055720332f1eaf3608ed71c (commit)
       from 7853a76d631646b2ffb9e10e0a7a8de1a6d3b776 (commit)

commit 14af09b9c4ba5c9c6055720332f1eaf3608ed71c
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Jan 19 19:12:17 2010 +0100

    Use g_strcmp0 instead of strcmp.

 xfce4-settings-editor/main_window.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/xfce4-settings-editor/main_window.c b/xfce4-settings-editor/main_window.c
index c36a810..cf905f8 100644
--- a/xfce4-settings-editor/main_window.c
+++ b/xfce4-settings-editor/main_window.c
@@ -366,7 +366,7 @@ load_properties (XfconfChannel *channel, GtkTreeStore *store, GtkTreeView *treev
                     {
                         /* Check if the component already exists, if so, return this child */
                         gtk_tree_model_get_value (GTK_TREE_MODEL(store), &child_iter, 0, &parent_val);
-                        if (!strcmp (components[i], g_value_get_string (&parent_val)))
+                        if (!g_strcmp0 (components[i], g_value_get_string (&parent_val)))
                         {
                             GValue current_parent_value = {0, };
 



More information about the Xfce4-commits mailing list