scd: Fix use of SCardListReaders for PC/SC.

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

--

Backport master commit of:
	1b1684cf61

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
1 changed files with 1 additions and 1 deletions

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;