summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-05-17 03:19:44 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-05-17 03:19:44 +0200
commit1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b (patch)
treed9c4471f3c72d633f2330c3f71acf6633387de79
parentscd: Fail when no good algorithm attribute. (diff)
downloadgnupg2-1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b.tar.xz
gnupg2-1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b.zip
scd: Fix use of SCardListReaders for PC/SC.
* scd/apdu.c (apdu_dev_list_start): Initialize NREADER. -- Reported-by: Ludovic Rousseau GnuPG-bug-id: 5979 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
-rw-r--r--scd/apdu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/apdu.c b/scd/apdu.c
index 574697cc1..e83815ba5 100644
--- a/scd/apdu.c
+++ b/scd/apdu.c
@@ -2015,7 +2015,7 @@ apdu_dev_list_start (const char *portstr, struct dev_list **l_p)
#endif
{ /* PC/SC readers. */
long r;
- pcsc_dword_t nreader;
+ pcsc_dword_t nreader = 0;
char *p = NULL;
if (!pcsc.context)