From 1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Tue, 17 May 2022 10:19:44 +0900 Subject: [PATCH] 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 --- scd/apdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)