[gnome-keyring] dbus: Fix inverted g_strcmp0 check when initializing gnome-session



commit 452659ec669096b0a987442b0d991bc7e896a2dd
Author: Stef Walter <stefw gnome org>
Date:   Tue Jun 30 10:26:12 2015 +0200

    dbus: Fix inverted g_strcmp0 check when initializing gnome-session

 daemon/dbus/gkd-dbus-environment.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/daemon/dbus/gkd-dbus-environment.c b/daemon/dbus/gkd-dbus-environment.c
index 49f1f1f..93e2b87 100644
--- a/daemon/dbus/gkd-dbus-environment.c
+++ b/daemon/dbus/gkd-dbus-environment.c
@@ -52,7 +52,7 @@ on_setenv_reply (GObject *source,
                gchar *dbus_error;
                dbus_error = g_dbus_error_get_remote_error (error);
                if (g_error_matches (error, G_DBUS_ERROR, G_DBUS_ERROR_SERVICE_UNKNOWN) ||
-                   g_strcmp0 (dbus_error, "org.gnome.SessionManager.NotInInitialization"))
+                   g_strcmp0 (dbus_error, "org.gnome.SessionManager.NotInInitialization") == 0)
                        g_debug ("couldn't set environment variable in session: %s", error->message);
                else
                        g_message ("couldn't set environment variable in session: %s", error->message);


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