make sure to initialize num_readers before using.
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ static bool sign_data(SCARDHANDLE*, unsigned char*, int, unsigned char, unsigned
|
|||||||
ASN1_BIT_STRING*, int);
|
ASN1_BIT_STRING*, int);
|
||||||
|
|
||||||
static bool connect_reader(SCARDHANDLE *card, SCARDCONTEXT *context, const char *wanted, int verbose) {
|
static bool connect_reader(SCARDHANDLE *card, SCARDCONTEXT *context, const char *wanted, int verbose) {
|
||||||
unsigned long num_readers;
|
unsigned long num_readers = 0;
|
||||||
unsigned long active_protocol;
|
unsigned long active_protocol;
|
||||||
char reader_buf[1024];
|
char reader_buf[1024];
|
||||||
long rc;
|
long rc;
|
||||||
|
|||||||
Reference in New Issue
Block a user