diff --git a/src/device.c b/src/device.c index a9080d3..5237bd6 100644 --- a/src/device.c +++ b/src/device.c @@ -767,11 +767,11 @@ static void verify_cb(FpDevice *dev, GAsyncResult *res, void *user_data) static void identify_cb(FpDevice *dev, GAsyncResult *res, void *user_data) { g_autoptr(GError) error = NULL; + g_autoptr(FpPrint) match = NULL; FprintDevice *rdev = user_data; FprintDevicePrivate *priv = fprint_device_get_instance_private(rdev); const char *name; gboolean success; - FpPrint *match; success = fp_device_identify_finish (dev, res, &match, NULL, &error); g_assert (!!success == !error);