[Fingerforce-commits] [libfprint] 02/02: vfs101: Logical conjunction always evaluates to false.

Didier Raboud odyx at moszumanska.debian.org
Sun Apr 12 09:42:03 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch master
in repository libfprint.

commit 45fb6d790815eec3d9e08a9e459a325fbb9addc0
Author: Carlos Olmedo Escobar <carlos.olmedo.e at gmail.com>
Date:   Fri Feb 6 17:22:16 2015 +0100

    vfs101: Logical conjunction always evaluates to false.
---
 libfprint/drivers/vfs101.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c
index db0b06e..84624eb 100644
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -186,7 +186,7 @@ static int result_codes[2][RESULT_COUNT] =
 static int result_code(struct fp_img_dev *dev, int result)
 {
 	/* Check result value */
-	if (result < 0 && result >= RESULT_COUNT)
+	if (result < 0 || result >= RESULT_COUNT)
 		return result;
 
 	/* Return result code */

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/fingerforce/libfprint.git



More information about the Fingerforce-commits mailing list