From fac93e69d5c1ce5c56138cfee70aedd4f2fe7ecc Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Tue, 14 Nov 2023 13:05:48 -0300 Subject: [PATCH] dir: Change scope of localed_proxy variable Move it to where it's actually used. --- common/flatpak-dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-dir.c b/common/flatpak-dir.c index f65179d4..f9ec607f 100644 --- a/common/flatpak-dir.c +++ b/common/flatpak-dir.c @@ -16371,12 +16371,12 @@ get_system_locales (FlatpakDir *self) if (g_once_init_enter (&cached)) { GPtrArray *langs = g_ptr_array_new_with_free_func (g_free); - g_autoptr(GDBusProxy) localed_proxy = NULL; g_autoptr(GDBusProxy) accounts_proxy = NULL; accounts_proxy = get_accounts_dbus_proxy (); if (!get_all_langs_from_accounts_dbus (accounts_proxy, langs)) { + g_autoptr(GDBusProxy) localed_proxy = NULL; /* Get the system default locales */ localed_proxy = get_localed_dbus_proxy ();