diff --git a/src/device.c b/src/device.c index df1e782..4b937c0 100644 --- a/src/device.c +++ b/src/device.c @@ -2219,10 +2219,13 @@ fprint_device_enroll_start (FprintDBusDevice *dbus_dev, clear_err->message); } + g_autoptr(GPtrArray) all_prints = NULL; + if (fp_device_has_feature (priv->dev, FP_DEVICE_FEATURE_IDENTIFY)) - { - g_autoptr(GPtrArray) all_prints = load_all_prints (rdev); + all_prints = load_all_prints (rdev); + if (all_prints && all_prints->len) + { /* We (now) have the policy that there must be no duplicate prints. * We need to do this for MoC devices, as their "identify" function * will generally just identify across all device stored prints.