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

Ludovic Rousseau rousseau at alioth.debian.org
Wed Feb 21 23:11:32 CET 2007


Author: rousseau
Date: 2007-02-21 23:11:32 +0100 (Wed, 21 Feb 2007)
New Revision: 2418

Modified:
   trunk/PCSC/src/hotplug_libusb.c
Log:
HPReadBundleValues(): ignore driver with readerName == NULL (non-ASCII
readerName in Info.plist for example)


Modified: trunk/PCSC/src/hotplug_libusb.c
===================================================================
--- trunk/PCSC/src/hotplug_libusb.c	2007-02-21 14:11:49 UTC (rev 2417)
+++ trunk/PCSC/src/hotplug_libusb.c	2007-02-21 22:11:32 UTC (rev 2418)
@@ -39,7 +39,7 @@
 #include "sys_generic.h"
 #include "hotplug.h"
 
-#undef DEBUG_HOTPLUG
+#define DEBUG_HOTPLUG
 #define ADD_SERIAL_NUMBER
 
 #define BUS_DEVICE_STRSIZE	256
@@ -182,10 +182,12 @@
 					Log2(PCSC_LOG_INFO, "Found driver for: %s",
 						driverTracker[listCount].readerName);
 #endif
+				alias++;
 
+				if (NULL == driverTracker[listCount].readerName)
+					continue;
+
 				listCount++;
-				alias++;
-
 				if (listCount >= driverSize)
 				{
 					int i;




More information about the Pcsclite-cvs-commit mailing list