1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

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>
This commit is contained in:
NIIBE Yutaka 2022-05-17 10:19:44 +09:00
parent 53eddf9b9e
commit 1b1684cf61

View File

@ -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)