[gnome-session] main: don't override manager with NULL value



commit 09d6022881cdb6d2fbf319c7b5969d749d4d1caf
Author: Ray Strode <rstrode redhat com>
Date:   Wed Sep 20 12:49:12 2017 -0400

    main: don't override manager with NULL value
    
    on_bus_lost currently calls gsm_manager_set_phase (NULL, ...),
    because a local is shadowing a global.
    
    This commit fixes that.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787950

 gnome-session/main.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/gnome-session/main.c b/gnome-session/main.c
index d28f0df..e2c3efe 100644
--- a/gnome-session/main.c
+++ b/gnome-session/main.c
@@ -78,8 +78,6 @@ on_name_lost (GDBusConnection *connection,
               const char *name,
               gpointer    data)
 {
-        GsmManager *manager = (GsmManager *)data;
-
         if (connection == NULL) {
                 g_warning ("Lost name on bus: %s", name);
                 gsm_fail_whale_dialog_we_failed (TRUE, TRUE, NULL);


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