mirror of
git://git.gnupg.org/gnupg.git
synced 2025-04-17 15:44:34 +02: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:
parent
53eddf9b9e
commit
1b1684cf61
@ -2015,7 +2015,7 @@ apdu_dev_list_start (const char *portstr, struct dev_list **l_p)
|
|||||||
#endif
|
#endif
|
||||||
{ /* PC/SC readers. */
|
{ /* PC/SC readers. */
|
||||||
long r;
|
long r;
|
||||||
pcsc_dword_t nreader;
|
pcsc_dword_t nreader = 0;
|
||||||
char *p = NULL;
|
char *p = NULL;
|
||||||
|
|
||||||
if (!pcsc.context)
|
if (!pcsc.context)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user