summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2021-01-14 12:11:41 +0100
committerAlexander Larsson <alexander.larsson@gmail.com>2021-01-14 12:43:46 +0100
commit50ee8293ccdbfc9e97f1b39d1312dc50e3275d4b (patch)
treea926df90cb619acf1206d26d1815b65f9d199cd4
parent649ad5fe49945b834da0d616a24400c41666048c (diff)
downloadflatpak-50ee8293ccdbfc9e97f1b39d1312dc50e3275d4b.tar.gz
Fix shadowed variable "error"
-rw-r--r--system-helper/flatpak-system-helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c
index ef9373e4..34f9c434 100644
--- a/system-helper/flatpak-system-helper.c
+++ b/system-helper/flatpak-system-helper.c
@@ -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;
}