[Pcsclite-cvs-commit] r6561 - /trunk/Drivers/ccid/src/commands.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Mar 6 14:21:07 UTC 2013


Author: rousseau
Date: Wed Mar  6 14:21:07 2013
New Revision: 6561

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

Modified:
    trunk/Drivers/ccid/src/commands.c

Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=6561&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Wed Mar  6 14:21:07 2013
@@ -1701,7 +1701,6 @@
 	unsigned int proc_len, int is_rcv)
 {
 	RESPONSECODE return_value;
-	unsigned char tmp_buf[512];
 	unsigned int ret_len;
 
 	DEBUG_COMM2("Enter, is_rcv = %d", is_rcv);
@@ -1709,6 +1708,7 @@
 	if (is_rcv == 1)
 	{	/* Receiving mode */
 		unsigned int remain_len;
+		unsigned char tmp_buf[512];
 
 		if (*in_len > 0)
 		{	/* There are still available data in our buffer */




More information about the Pcsclite-cvs-commit mailing list