diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2014-09-08 11:28:20 +1200 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2014-09-08 11:28:20 +1200 |
commit | 25b18f32c201e5958d4224a80e304c8ddb8d0b4b (patch) | |
tree | c8b72f9416ed8e49f26e01aeae465a8e14582523 /common | |
parent | 36efd1c501fa248a742572cf196c061bdcc86c9d (diff) | |
download | lightdm-25b18f32c201e5958d4224a80e304c8ddb8d0b4b.tar.gz |
Remove unnecessary variable
Diffstat (limited to 'common')
-rw-r--r-- | common/configuration.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/common/configuration.c b/common/configuration.c index 4e50005a..bf08c7d9 100644 --- a/common/configuration.c +++ b/common/configuration.c @@ -169,7 +169,6 @@ gboolean config_load_from_standard_locations (Configuration *config, const gchar *config_path, GList **messages) { gchar *config_d_dir = NULL, *path; - gboolean explicit_config = FALSE; gboolean success = TRUE; GError *error = NULL; @@ -182,7 +181,6 @@ config_load_from_standard_locations (Configuration *config, const gchar *config_ { path = g_strdup (config_path); config->priv->dir = path_make_absolute (g_path_get_basename (config_path)); - explicit_config = TRUE; } else { @@ -202,7 +200,7 @@ config_load_from_standard_locations (Configuration *config, const gchar *config_ is_empty = error && g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOENT); - if (explicit_config || !is_empty) + if (config_path || !is_empty) { if (error) g_printerr ("Failed to load configuration from %s: %s\n", path, error->message); |