[Pcsclite-cvs-commit] r3376 - /trunk/HandlerTest/Host/handler_test.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Thu Mar 26 09:51:20 UTC 2009


Author: rousseau
Date: Thu Mar 26 09:51:19 2009
New Revision: 3376

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3376
Log:
display an error if no libname is given

Modified:
    trunk/HandlerTest/Host/handler_test.c

Modified: trunk/HandlerTest/Host/handler_test.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/HandlerTest/Host/handler_test.c?rev=3376&op=diff
==============================================================================
--- trunk/HandlerTest/Host/handler_test.c (original)
+++ trunk/HandlerTest/Host/handler_test.c Thu Mar 26 09:51:19 2009
@@ -202,6 +202,13 @@
 		}
 	}
 
+	if (NULL == driver)
+	{
+		printf("\33[01;31mUse -l libname or define " ENV_LIBNAME "\33[0m\n");
+		help(argv[0]);
+		return 2;
+	}
+
 	if ((FALSE == tpdu) && (FALSE == apdu))
 	{
 		printf("\33[01;31mDefine TPDU (-T) or APDU (-A)\33[0m\n");




More information about the Pcsclite-cvs-commit mailing list