[Pcsclite-cvs-commit] PCSC/src readerfactory.c,1.50,1.51

rousseau@haydn.debian.org rousseau@haydn.debian.org


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

Modified Files:
	readerfactory.c 
Log Message:
move declaration of dwContextB in the block it is used


Index: readerfactory.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/readerfactory.c,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- readerfactory.c	17 Jun 2004 07:50:39 -0000	1.50
+++ readerfactory.c	17 Jun 2004 07:59:26 -0000	1.51
@@ -64,7 +64,7 @@
 
 LONG RFAddReader(LPTSTR lpcReader, DWORD dwPort, LPTSTR lpcLibrary, LPTSTR lpcDevice)
 {
-	DWORD dwContext, dwContextB, dwGetSize;
+	DWORD dwContext, dwGetSize;
 	UCHAR ucGetData[1], ucThread[1];
 	LONG rv, parentNode;
 
@@ -74,7 +74,6 @@
 	 * Zero out everything 
 	 */
 	dwContext = 0;
-	dwContextB = 0;
 	rv = 0;
 	i = 0;
 	psize = 0;
@@ -301,6 +300,7 @@
 	for (j = 1; j < ucGetData[0]; j++)
 	{
 		char *tmpReader = NULL;
+		DWORD dwContextB = 0;
 
 		/*
 		 * We must find an empty spot to put the