summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2016-01-26 16:06:10 +1300
committerRobert Ancell <robert.ancell@canonical.com>2016-01-26 16:06:10 +1300
commit64193adbfe78c0ac71e04341499ce317c79c2286 (patch)
tree787aae3bfb5a816157fb24949a5976f8aac30b8d
parentb0823f6326965e0a4d802ae11de794a76c1fd392 (diff)
downloadlightdm-64193adbfe78c0ac71e04341499ce317c79c2286.tar.gz
Fix compile warning
-rw-r--r--src/console-kit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/console-kit.c b/src/console-kit.c
index ac514cc2..afa33c17 100644
--- a/src/console-kit.c
+++ b/src/console-kit.c
@@ -269,7 +269,7 @@ ck_get_xdg_runtime_dir (const gchar *cookie)
gchar *runtime_dir = NULL;
GError *error = NULL;
- g_return_if_fail (cookie != NULL);
+ g_return_val_if_fail (cookie != NULL, NULL);
g_debug ("Getting XDG_RUNTIME_DIR from ConsoleKit for session %s", cookie);
@@ -308,5 +308,6 @@ ck_get_xdg_runtime_dir (const gchar *cookie)
}
g_object_unref (bus);
+
return runtime_dir;
}