[pkg-opensc-commit] [opensc] 09/23: Unbreak tests without arguments (automatic selection of the reader)

Eric Dorland eric at moszumanska.debian.org
Tue Jul 5 06:01:11 UTC 2016


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

eric pushed a commit to branch master
in repository opensc.

commit 462bebd38093cb969cf170d2a015891c26d720c2
Author: Jakub Jelen <jjelen at redhat.com>
Date:   Thu May 12 13:59:28 2016 +0200

    Unbreak tests without arguments (automatic selection of the reader)
---
 src/tests/sc-test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/tests/sc-test.c b/src/tests/sc-test.c
index a311d73..42bc1f6 100644
--- a/src/tests/sc-test.c
+++ b/src/tests/sc-test.c
@@ -84,7 +84,7 @@ int sc_test_init(int *argc, char *argv[])
 				return rc;
 		} else {
 			for (i = rc = 0; rc != 1 && i < (int) sc_ctx_get_reader_count(ctx); i++)
-				rc = sc_detect_card_presence(sc_ctx_get_reader(ctx, opt_reader));
+				rc = sc_detect_card_presence(sc_ctx_get_reader(ctx, i));
 			if (rc == 1)
 				opt_reader = i - 1;
 		}

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



More information about the pkg-opensc-commit mailing list