Skip to content

Commit

Permalink
Fix shadowed variable "error"
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlarsson committed Jan 14, 2021
1 parent 649ad5f commit 50ee829
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions system-helper/flatpak-system-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -2059,14 +2059,14 @@ flatpak_authorize_method_handler (GDBusInterfaceSkeleton *interface,
{
g_autoptr(FlatpakDir) system = NULL;
g_autoptr(GBytes) deploy_data = NULL;
g_autoptr(GError) error = NULL;
g_autoptr(GError) sys_error = NULL;
const char *name = NULL;

system = dir_get_system (installation, 0, &error);
system = dir_get_system (installation, 0, &sys_error);
if (system == NULL)
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_FAILED,
"Error getting installation %s: %s", installation, error->message);
"Error getting installation %s: %s", installation, sys_error->message);
return FALSE;
}

Expand Down

0 comments on commit 50ee829

Please sign in to comment.