[Pcsclite-cvs-commit] CVS PCSC/src

CVS User rousseau ludovic.rousseau@free.fr
Wed, 15 Jun 2005 11:56:17 +0000


Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv32142

Modified Files:
	winscard.c 
Log Message:
SCardTransmit(): initialise sSendPci.Protocol to T=0 by default
(avoids a compiler warning)


--- /cvsroot/pcsclite/PCSC/src/winscard.c	2005/05/26 12:51:28	1.55
+++ /cvsroot/pcsclite/PCSC/src/winscard.c	2005/06/15 11:56:17	1.56
@@ -5,7 +5,7 @@
  *  David Corcoran <corcoran@linuxnet.com>
  *  Ludovic Rousseau <ludovic.rousseau@free.fr>
  *
- * $Id: winscard.c,v 1.55 2005/05/26 12:51:28 rousseau Exp $
+ * $Id: winscard.c,v 1.56 2005/06/15 11:56:17 rousseau Exp $
  */
 
 /**
@@ -1436,10 +1436,9 @@
 	 * just wants 0 or 1
 	 */
 
-	if (pioSendPci->dwProtocol == SCARD_PROTOCOL_T0)
-	{
-		sSendPci.Protocol = 0;
-	} else if (pioSendPci->dwProtocol == SCARD_PROTOCOL_T1)
+	sSendPci.Protocol = 0; /* protocol T=0 by default */
+
+	if (pioSendPci->dwProtocol == SCARD_PROTOCOL_T1)
 	{
 		sSendPci.Protocol = 1;
 	} else if (pioSendPci->dwProtocol == SCARD_PROTOCOL_RAW)