[Pcsclite-cvs-commit] r6550 - /trunk/PCSC/UnitaryTests/BufferOverflow.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Mar 6 13:32:22 UTC 2013


Author: rousseau
Date: Wed Mar  6 13:32:21 2013
New Revision: 6550

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6550
Log:
cppcheck: The scope of the variable 'i' can be reduced.

Modified:
    trunk/PCSC/UnitaryTests/BufferOverflow.c

Modified: trunk/PCSC/UnitaryTests/BufferOverflow.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/UnitaryTests/BufferOverflow.c?rev=6550&op=diff
==============================================================================
--- trunk/PCSC/UnitaryTests/BufferOverflow.c (original)
+++ trunk/PCSC/UnitaryTests/BufferOverflow.c Wed Mar  6 13:32:21 2013
@@ -26,7 +26,6 @@
 	DWORD dwReaders = sizeof(mszReaders);
 	unsigned char pbAtr[265];	/* 264 is OK */
 	DWORD dwAtrLen;
-	int i;
 
 	rv = SCardEstablishContext(SCARD_SCOPE_SYSTEM, NULL, NULL, &hContext);
 	printf("%lX\n", rv);
@@ -45,6 +44,8 @@
 
 	if (SCARD_S_SUCCESS == rv)
 	{
+		int i;
+
 		for (i=0; i<dwAtrLen; i++)
 			printf("%02X ", pbAtr[i]);
 		printf("\n");




More information about the Pcsclite-cvs-commit mailing list