[Pcsclite-cvs-commit] r1627 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Wed Aug 31 14:48:53 UTC 2005


Author: rousseau
Date: 2005-08-31 14:48:53 +0000 (Wed, 31 Aug 2005)
New Revision: 1627

Modified:
   trunk/PCSC/src/readerfactory.c
Log:
RFAddReader(): return in error if lpcDevice == NULL


Modified: trunk/PCSC/src/readerfactory.c
===================================================================
--- trunk/PCSC/src/readerfactory.c	2005-08-25 20:07:04 UTC (rev 1626)
+++ trunk/PCSC/src/readerfactory.c	2005-08-31 14:48:53 UTC (rev 1627)
@@ -74,7 +74,7 @@
 	LONG rv, parentNode;
 	int i, j;
 
-	if (lpcReader == 0 || lpcLibrary == 0)
+	if ((lpcReader == NULL) || (lpcLibrary == NULL) || (lpcDevice == NULL))
 		return SCARD_E_INVALID_VALUE;
 
 	/*




More information about the Pcsclite-cvs-commit mailing list