[Pcsclite-cvs-commit] r6555 - /trunk/PCSC/src/winscard_svc.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Wed Mar 6 14:09:17 UTC 2013
Author: rousseau
Date: Wed Mar 6 14:09:16 2013
New Revision: 6555
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6555
Log:
cppcheck: The scope of the variable 'lrv' can be reduced.
Modified:
trunk/PCSC/src/winscard_svc.c
Modified: trunk/PCSC/src/winscard_svc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.c?rev=6555&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.c (original)
+++ trunk/PCSC/src/winscard_svc.c Wed Mar 6 14:09:16 2013
@@ -834,7 +834,7 @@
/*
* Find an empty spot to put the hCard value
*/
- int listLength, lrv;
+ int listLength;
(void)pthread_mutex_lock(&threadContext->cardsList_lock);
@@ -849,6 +849,8 @@
}
else
{
+ int lrv;
+
lrv = list_append(&threadContext->cardsList, &hCard);
if (lrv < 0)
{
More information about the Pcsclite-cvs-commit
mailing list