diff options
author | Alessandro Bono <alessandro.bono369@gmail.com> | 2022-10-31 12:48:39 +0100 |
---|---|---|
committer | Ray Strode <halfline@gmail.com> | 2023-04-28 19:41:28 +0000 |
commit | e9111f19690828a896c1be1846fa0a1fcfc1defd (patch) | |
tree | 55bb772afbf43c8cdf59cd6144c482028b0334c7 /common | |
parent | a07b3e4d7db9ad38af5f2d5e7b703c10f6469bb8 (diff) | |
download | gdm-e9111f19690828a896c1be1846fa0a1fcfc1defd.tar.gz |
gdm-settings-direct: Don't pass an error if we are not interested in it
Diffstat (limited to 'common')
-rw-r--r-- | common/gdm-settings-direct.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/common/gdm-settings-direct.c b/common/gdm-settings-direct.c index b6954fb0..4fa5543f 100644 --- a/common/gdm-settings-direct.c +++ b/common/gdm-settings-direct.c @@ -68,18 +68,11 @@ static gboolean get_value (const char *key, char **value) { - GError *error; char *str; gboolean res; - error = NULL; - res = gdm_settings_get_value (settings_object, key, &str, &error); + res = gdm_settings_get_value (settings_object, key, &str, NULL); if (! res) { - if (error != NULL) { - g_error_free (error); - } else { - } - return FALSE; } |