[Pcsclite-cvs-commit] PCSC/doc/example pcsc_demo.c,1.11,1.12

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/PCSC/doc/example
In directory haydn:/tmp/cvs-serv30002

Modified Files:
	pcsc_demo.c 
Log Message:
initialize readers to NULL to avoid a "`readers' might be used
uninitialized" compilation warning


Index: pcsc_demo.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/doc/example/pcsc_demo.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- pcsc_demo.c	2 Apr 2004 06:52:16 -0000	1.11
+++ pcsc_demo.c	5 Apr 2004 14:44:59 -0000	1.12
@@ -54,7 +54,7 @@
 	SCARDCONTEXT hContext;
 	DWORD dwReaders;
 	LPSTR mszReaders;
-	char *ptr, **readers;
+	char *ptr, **readers = NULL;
 	int nbReaders;
 	SCARDHANDLE hCard;
 	DWORD dwActiveProtocol, dwReaderLen, dwState, dwProt, dwAtrLen;