mirror of
https://gitlab.freedesktop.org/libfprint/fprintd.git
synced 2026-05-07 06:08:07 +02:00
device: Use standard names for local errors and remove unused one
This commit is contained in:
parent
5aa61adabc
commit
c00a3375d1
1 changed files with 3 additions and 5 deletions
|
|
@ -717,7 +717,7 @@ _fprint_device_check_for_username (FprintDevice *rdev,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
g_autoptr(GVariant) ret = NULL;
|
g_autoptr(GVariant) ret = NULL;
|
||||||
g_autoptr(GError) err = NULL;
|
g_autoptr(GError) local_error = NULL;
|
||||||
GDBusConnection *connection;
|
GDBusConnection *connection;
|
||||||
const char *sender;
|
const char *sender;
|
||||||
struct passwd *user;
|
struct passwd *user;
|
||||||
|
|
@ -734,15 +734,13 @@ _fprint_device_check_for_username (FprintDevice *rdev,
|
||||||
"GetConnectionUnixUser",
|
"GetConnectionUnixUser",
|
||||||
g_variant_new ("(s)", sender),
|
g_variant_new ("(s)", sender),
|
||||||
NULL, G_DBUS_CALL_FLAGS_NONE, -1,
|
NULL, G_DBUS_CALL_FLAGS_NONE, -1,
|
||||||
NULL, &err);
|
NULL, &local_error);
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
g_autoptr(GError) e = NULL;
|
|
||||||
|
|
||||||
g_set_error (error, FPRINT_ERROR, FPRINT_ERROR_INTERNAL,
|
g_set_error (error, FPRINT_ERROR, FPRINT_ERROR_INTERNAL,
|
||||||
"Could not get conection unix user ID: %s",
|
"Could not get conection unix user ID: %s",
|
||||||
err->message);
|
local_error->message);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue