summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Trevisan (TreviƱo) <mail@3v1n0.net>2020-12-03 21:01:10 +0100
committerBenjamin Berg <bberg@redhat.com>2020-12-07 12:00:58 +0100
commit2dc3a4e2c571117ff80833c69a09a7ca4257f43b (patch)
tree36787d0593ce71d46f2bc40bc50d3a41e2a226a7
parent3b0d93bcc20792166e1c64575a55f7d29e329733 (diff)
device: Use more standard naming for local errors
-rw-r--r--src/device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/device.c b/src/device.c
index 3dd803b..abea501 100644
--- a/src/device.c
+++ b/src/device.c
@@ -577,7 +577,7 @@ _fprint_device_check_polkit_for_action (FprintDevice *rdev,
{
FprintDevicePrivate *priv = fprint_device_get_instance_private(rdev);
const char *sender;
- g_autoptr(GError) _error = NULL;
+ g_autoptr(GError) local_error = NULL;
g_autoptr(PolkitAuthorizationResult) result = NULL;
g_autoptr(PolkitSubject) subject = NULL;
@@ -590,11 +590,11 @@ _fprint_device_check_polkit_for_action (FprintDevice *rdev,
action,
NULL,
POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
- NULL, &_error);
+ NULL, &local_error);
if (result == NULL) {
g_set_error (error, FPRINT_ERROR,
FPRINT_ERROR_PERMISSION_DENIED,
- "Not Authorized: %s", _error->message);
+ "Not Authorized: %s", local_error->message);
return FALSE;
}