[Pcsclite-cvs-commit] Drivers/ccid/src parse.c,1.17,1.18
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv32247
Modified Files:
parse.c
Log Message:
try to IFDHCloseChannel() only if we opened at least one reader
Index: parse.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/parse.c,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- parse.c 4 Aug 2004 19:53:34 -0000 1.17
+++ parse.c 6 Aug 2004 13:29:00 -0000 1.18
@@ -1,6 +1,6 @@
/*
parse.c: parse CCID structure
- Copyright (C) 2003 Ludovic Rousseau
+ Copyright (C) 2003-2004 Ludovic Rousseau
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -72,9 +72,9 @@
if (channel == 0)
printf("No known CCID reader found\n");
-
- for (channel--; channel!=0; channel--)
- (void)IFDHCloseChannel(channel<<16);
+ else
+ for (channel--; channel!=0; channel--)
+ (void)IFDHCloseChannel(channel<<16);
return 0;
} /* main */