[Pcsclite-cvs-commit] r5523 - /trunk/PCSC/src/eventhandler.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Tue Jan 18 15:53:24 UTC 2011
Author: rousseau
Date: Tue Jan 18 15:53:23 2011
New Revision: 5523
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5523
Log:
EHStatusHandlerThread(): check the return value of IFDStatusICC()
Thanks to clang(1) for the warning
src/eventhandler.c:235:2: warning: Value stored to 'rv' is never read
rv = IFDStatusICC(rContext, &dwStatus);
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Modified:
trunk/PCSC/src/eventhandler.c
Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=5523&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Tue Jan 18 15:53:23 2011
@@ -234,7 +234,7 @@
rv = IFDStatusICC(rContext, &dwStatus);
- if (dwStatus & SCARD_PRESENT)
+ if ((SCARD_S_SUCCESS == rv) && (dwStatus & SCARD_PRESENT))
{
#ifdef DISABLE_AUTO_POWER_ON
rContext->readerState->cardAtrLength = 0;
More information about the Pcsclite-cvs-commit
mailing list