Skip to content

Commit

Permalink
Initialize the reader state structure to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
nacho authored and LudovicRousseau committed Feb 23, 2024
1 parent 6801bc3 commit 8ab09e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsc_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ int main(int argc, char *argv[])
LONG rv;
#endif
SCARD_READERSTATE *rgReaderStates_t = NULL;
SCARD_READERSTATE rgReaderStates[1];
SCARD_READERSTATE rgReaderStates[1] = { 0, };
DWORD dwReaders = 0, dwReadersOld;
LPSTR mszReaders = NULL;
char *ptr = NULL;
Expand Down

0 comments on commit 8ab09e2

Please sign in to comment.