From c00a3375d11ba2034cd82db035906f5ba2c5d62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 10 Dec 2020 15:03:36 +0100 Subject: [PATCH] device: Use standard names for local errors and remove unused one --- src/device.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/device.c b/src/device.c index 9e64d63..5796c38 100644 --- a/src/device.c +++ b/src/device.c @@ -717,7 +717,7 @@ _fprint_device_check_for_username (FprintDevice *rdev, GError **error) { g_autoptr(GVariant) ret = NULL; - g_autoptr(GError) err = NULL; + g_autoptr(GError) local_error = NULL; GDBusConnection *connection; const char *sender; struct passwd *user; @@ -734,15 +734,13 @@ _fprint_device_check_for_username (FprintDevice *rdev, "GetConnectionUnixUser", g_variant_new ("(s)", sender), NULL, G_DBUS_CALL_FLAGS_NONE, -1, - NULL, &err); + NULL, &local_error); if (!ret) { - g_autoptr(GError) e = NULL; - g_set_error (error, FPRINT_ERROR, FPRINT_ERROR_INTERNAL, "Could not get conection unix user ID: %s", - err->message); + local_error->message); return NULL; }