[Pcsclite-cvs-commit] r6560 - /trunk/Drivers/ccid/src/commands.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Mar 6 14:20:22 UTC 2013
Author: rousseau
Date: Wed Mar 6 14:20:22 2013
New Revision: 6560
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6560
Log:
cppcheck: The scope of the variable 'count' 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=6560&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Wed Mar 6 14:20:22 2013
@@ -1701,7 +1701,6 @@
unsigned int proc_len, int is_rcv)
{
RESPONSECODE return_value;
- unsigned int remain_len;
unsigned char tmp_buf[512];
unsigned int ret_len;
@@ -1709,6 +1708,8 @@
if (is_rcv == 1)
{ /* Receiving mode */
+ unsigned int remain_len;
+
if (*in_len > 0)
{ /* There are still available data in our buffer */
if (*in_len >= proc_len)
More information about the Pcsclite-cvs-commit
mailing list