freebsd-ports/security/pam_fprint/files/patch-src_pam__fprint__enroll.c
Michael Scheidell a6acced551 - Submitter is now Maintainer
- There's one more commit after version 0.2 on github. After that, the
software discontinued. This version is adopted
  by Debian
  - added alocal/automake
  - Committed with changed (added IGNORE for FreeBSD < 8.x since libusb
1.0 is needed, see libfprint)

PR:		161225
Submitted by:	Zhihao Yuan <lichray@gmail.com>
Approved by:	ports (maintainer timeout) gabor (mentor)
Feature safe:	yes
2011-11-29 14:56:21 +00:00

11 lines
473 B
C

--- src/pam_fprint_enroll.c~ 2009-01-08 15:31:21.000000000 -0600
+++ src/pam_fprint_enroll.c 2011-11-13 02:15:43.976691333 -0600
@@ -47,7 +47,7 @@ static struct fp_dscv_dev *discover_devi
struct fp_dscv_dev *ddev = NULL;
int i;
- for (i = 0; ddev = discovered_devs[i]; i++) {
+ for (i = 0; (ddev = discovered_devs[i]); i++) {
struct fp_driver *drv = fp_dscv_dev_get_driver(ddev);
printf("Found device claimed by %s driver\n",
fp_driver_get_full_name(drv));