Skip to content

Commit

Permalink
dir: Change scope of localed_proxy variable
Browse files Browse the repository at this point in the history
Move it to where it's actually used.
  • Loading branch information
GeorgesStavracas authored and smcv committed Nov 14, 2023
1 parent ba86840 commit fac93e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/flatpak-dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ();
Expand Down

0 comments on commit fac93e6

Please sign in to comment.