[Pcsclite-cvs-commit] PCSC/src readerfactory.c,1.23,1.24
rousseau@quantz.debian.org
rousseau@quantz.debian.org
Mon, 22 Sep 2003 15:15:26 +0200
Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv8631
Modified Files:
readerfactory.c
Log Message:
initialize valueLength just before the call to IFDGetCapabilities().
Index: readerfactory.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/readerfactory.c,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- readerfactory.c 22 Sep 2003 12:59:32 -0000 1.23
+++ readerfactory.c 22 Sep 2003 13:15:24 -0000 1.24
@@ -495,7 +495,6 @@
i = 0;
rv = -1;
supportedChannels = 0;
- valueLength = sizeof(tagValue);
tagValue = 0;
/*
@@ -521,6 +520,7 @@
/*
* Ask the driver if it supports multiple channels
*/
+ valueLength = sizeof(tagValue);
ret = IFDGetCapabilities((sContexts[i]),
TAG_IFD_SIMULTANEOUS_ACCESS,
&valueLength, &tagValue);