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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Nov 17 14:23:49 UTC 2007


Author: rousseau
Date: Sat Nov 17 14:23:49 2007
New Revision: 2702

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2702
Log:
move display of "Define TPDU (-T) or APDU (-A)" _after_ checking for
ENV_LIBNAME

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=2702&op=diff
==============================================================================
--- trunk/HandlerTest/Host/handler_test.c (original)
+++ trunk/HandlerTest/Host/handler_test.c Sat Nov 17 14:23:49 2007
@@ -188,12 +188,6 @@
 		}
 	}
 
-	if ((FALSE == tpdu) && (FALSE == apdu))
-	{
-		printf("\33[01;31mDefine TPDU (-T) or APDU (-A)\33[0m\n");
-		return 2;
-	}
-
 	driver = getenv(ENV_LIBNAME);
 
 	if (driver == NULL)
@@ -228,6 +222,12 @@
 			default:
 				help(argv[0]);
 		}
+	}
+
+	if ((FALSE == tpdu) && (FALSE == apdu))
+	{
+		printf("\33[01;31mDefine TPDU (-T) or APDU (-A)\33[0m\n");
+		return 2;
 	}
 
 	printf("Using driver: %s\n", driver);




More information about the Pcsclite-cvs-commit mailing list