mirror of
https://gitlab.com/mishakmak/pam-fprint-grosshack.git
synced 2026-04-08 20:03:34 +02:00
device: Use more standard naming for local errors
This commit is contained in:
committed by
Benjamin Berg
parent
3b0d93bcc2
commit
2dc3a4e2c5
@ -577,7 +577,7 @@ _fprint_device_check_polkit_for_action (FprintDevice *rdev,
|
|||||||
{
|
{
|
||||||
FprintDevicePrivate *priv = fprint_device_get_instance_private(rdev);
|
FprintDevicePrivate *priv = fprint_device_get_instance_private(rdev);
|
||||||
const char *sender;
|
const char *sender;
|
||||||
g_autoptr(GError) _error = NULL;
|
g_autoptr(GError) local_error = NULL;
|
||||||
g_autoptr(PolkitAuthorizationResult) result = NULL;
|
g_autoptr(PolkitAuthorizationResult) result = NULL;
|
||||||
g_autoptr(PolkitSubject) subject = NULL;
|
g_autoptr(PolkitSubject) subject = NULL;
|
||||||
|
|
||||||
@ -590,11 +590,11 @@ _fprint_device_check_polkit_for_action (FprintDevice *rdev,
|
|||||||
action,
|
action,
|
||||||
NULL,
|
NULL,
|
||||||
POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
|
POLKIT_CHECK_AUTHORIZATION_FLAGS_ALLOW_USER_INTERACTION,
|
||||||
NULL, &_error);
|
NULL, &local_error);
|
||||||
if (result == NULL) {
|
if (result == NULL) {
|
||||||
g_set_error (error, FPRINT_ERROR,
|
g_set_error (error, FPRINT_ERROR,
|
||||||
FPRINT_ERROR_PERMISSION_DENIED,
|
FPRINT_ERROR_PERMISSION_DENIED,
|
||||||
"Not Authorized: %s", _error->message);
|
"Not Authorized: %s", local_error->message);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user