[gnome-session] client: fix GCC warnings



commit 4bc7406ead4b434d1dd01e0262fe3eea556bc63c
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Jun 29 23:38:29 2016 -0700

    client: fix GCC warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766836

 gnome-session/gsm-dbus-client.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnome-session/gsm-dbus-client.c b/gnome-session/gsm-dbus-client.c
index e5b9985..6f5099f 100644
--- a/gnome-session/gsm-dbus-client.c
+++ b/gnome-session/gsm-dbus-client.c
@@ -149,13 +149,14 @@ get_caller_info (GsmDBusClient *client,
         pid_t            pid;
 
         retval = FALSE;
+        connection = NULL;
+        uid_variant = pid_variant = NULL;
 
         if (sender == NULL) {
                 goto out;
         }
 
         error = NULL;
-        uid_variant = pid_variant = NULL;
         connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, &error);
 
         if (error != NULL) {


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