[gdm] gdmflexiserver: *session_id = NULL, not session_id = NULL



commit 977f5289a6969b5a31233bcfb4f998cdc42f53fa
Author: Christiaan Welvaart <cjw daneel dyndns org>
Date:   Mon Aug 8 10:32:22 2011 -0400

    gdmflexiserver: *session_id = NULL, not session_id = NULL
    
    The session_id assignment at the top of
    get_login_window_session_id was missing its leading asterisk,
    leading to potential crashes and undefined behavior.

 utils/gdmflexiserver.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/utils/gdmflexiserver.c b/utils/gdmflexiserver.c
index 5fc2e9d..7f33f98 100644
--- a/utils/gdmflexiserver.c
+++ b/utils/gdmflexiserver.c
@@ -617,7 +617,7 @@ get_login_window_session_id (DBusConnection  *connection,
         char      **sessions;
         int         i;
 
-        session_id = NULL;
+        *session_id = NULL;
         sessions = NULL;
 
         g_debug ("checking if seat can activate sessions");



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