1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-23 10:29:58 +01:00

scd: Fix use of SCardListReaders for PC/SC.

* scd/apdu.c (open_pcsc_reader): Initialize NREADER.

--

Backport master commit of:
	1b1684cf6192d9edb90a54ebe4a0e66b3d59a44b

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:25:34 +09:00
parent a5217c9000
commit 7bc794c311

View File

@ -1263,7 +1263,7 @@ open_pcsc_reader (const char *portstr)
int slot;
char *list = NULL;
const char *rdrname = NULL;
pcsc_dword_t nreader;
pcsc_dword_t nreader = 0;
const char *p;
size_t n;
membuf_t reader_mb;