[Pcsclite-cvs-commit] CVS Drivers/ccid/src

CVS User rousseau ludovic.rousseau@free.fr
Wed, 27 Apr 2005 13:55:52 +0000


Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv23740

Modified Files:
	ccid_usb.c 
Log Message:
get_data_rates(): test if int_array is NULL (and not buffer)


--- /cvsroot/pcsclite/Drivers/ccid/src/ccid_usb.c	2005/04/27 13:20:39	1.52
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid_usb.c	2005/04/27 13:55:52	1.53
@@ -18,7 +18,7 @@
 */
 
 /*
- * $Id: ccid_usb.c,v 1.52 2005/04/27 13:20:39 rousseau Exp $
+ * $Id: ccid_usb.c,v 1.53 2005/04/27 13:55:52 rousseau Exp $
  */
 
 #define __CCID_USB__
@@ -717,7 +717,7 @@
 	/* allocate the buffer (including the end marker) */
 	n /= sizeof(int);
 	int_array = calloc(n+1, sizeof(int));
-	if (NULL == buffer)
+	if (NULL == int_array)
 	{
 		DEBUG_CRITICAL("Memory allocation failed");
 		return NULL;