summaryrefslogtreecommitdiff
path: root/libgdm
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2018-06-04 19:13:04 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2018-06-04 19:13:04 +0200
commitaca3d13d452ecf1a8e1e68ce955c8117bb99de7f (patch)
treeb0e172cf6c2e9560c4ad18669a3a639da97173cb /libgdm
parenta01fc3ca1a9c1321f8782547d9487838007091e9 (diff)
downloadgdm-aca3d13d452ecf1a8e1e68ce955c8117bb99de7f.tar.gz
libgdm: Return NULL on invalid client instances
Diffstat (limited to 'libgdm')
-rw-r--r--libgdm/gdm-client.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/libgdm/gdm-client.c b/libgdm/gdm-client.c
index 0e8bf439..28cb7253 100644
--- a/libgdm/gdm-client.c
+++ b/libgdm/gdm-client.c
@@ -423,7 +423,7 @@ gdm_client_get_connection_sync (GdmClient *client,
GDBusConnection *connection;
gboolean ret;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
connection = gdm_client_get_open_connection (client);
@@ -553,7 +553,7 @@ gdm_client_get_connection_finish (GdmClient *client,
{
GDBusConnection *connection;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
connection = g_task_propagate_pointer (G_TASK (result), error);
if (connection == NULL) {
@@ -621,7 +621,7 @@ gdm_client_open_reauthentication_channel_sync (GdmClient *client,
GdmUserVerifier *user_verifier = NULL;
gboolean ret;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
manager = gdm_manager_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
G_DBUS_PROXY_FLAGS_NONE,
@@ -722,7 +722,7 @@ gdm_client_open_reauthentication_channel_finish (GdmClient *client,
GAsyncResult *result,
GError **error)
{
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
return g_task_propagate_pointer (G_TASK (result), error);
}
@@ -890,7 +890,7 @@ gdm_client_get_user_verifier_finish (GdmClient *client,
{
GdmUserVerifier *user_verifier;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
if (client->priv->user_verifier != NULL)
return g_object_ref (client->priv->user_verifier);
@@ -1058,7 +1058,7 @@ gdm_client_get_greeter_finish (GdmClient *client,
{
GdmGreeter *greeter;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
if (client->priv->greeter != NULL)
return g_object_ref (client->priv->greeter);
@@ -1232,7 +1232,7 @@ gdm_client_get_remote_greeter_finish (GdmClient *client,
{
GdmRemoteGreeter *remote_greeter;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
if (client->priv->remote_greeter != NULL)
return g_object_ref (client->priv->remote_greeter);
@@ -1403,7 +1403,7 @@ gdm_client_get_chooser_finish (GdmClient *client,
{
GdmChooser *chooser;
- g_return_val_if_fail (GDM_IS_CLIENT (client), FALSE);
+ g_return_val_if_fail (GDM_IS_CLIENT (client), NULL);
if (client->priv->chooser != NULL)
return g_object_ref (client->priv->chooser);