From: <lu...@us...> - 2011-02-04 13:55:47
|
Revision: 525 http://pyscard.svn.sourceforge.net/pyscard/?rev=525&view=rev Author: ludov Date: 2011-02-04 13:55:41 +0000 (Fri, 04 Feb 2011) Log Message: ----------- Fix a warning from "clang --analyse" smartcard/scard/helpers.c:1175:19: warning: Although the value stored to 'cChars' is used in the enclosing expression, the value is never actually read from 'cChars' for( x=0, cChars=0, p=psl->ac; x<cStrings; x++ ) ^ ~ Modified Paths: -------------- trunk/pyscard/src/smartcard/scard/helpers.c Modified: trunk/pyscard/src/smartcard/scard/helpers.c =================================================================== --- trunk/pyscard/src/smartcard/scard/helpers.c 2010-12-29 17:57:44 UTC (rev 524) +++ trunk/pyscard/src/smartcard/scard/helpers.c 2011-02-04 13:55:41 UTC (rev 525) @@ -1172,7 +1172,7 @@ return NULL; } - for( x=0, cChars=0, p=psl->ac; x<cStrings; x++ ) + for( x=0, p=psl->ac; x<cStrings; x++ ) { PyObject* o = PyList_GetItem(source, x); strcpy( p, PyString_AsString(o) ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |