[Expat-checkins] CVS: expat/lib xmlparse.c,1.28,1.29

Fred L. Drake fdrake@users.sourceforge.net
Tue Apr 23 14:37:13 2002


Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv32020a/lib

Modified Files:
	xmlparse.c 
Log Message:
Squash compiler warning (GCC): simply referencing a variable in the
initialization clause of a for statement does not have any effect.


Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** xmlparse.c	23 Apr 2002 19:48:29 -0000	1.28
--- xmlparse.c	23 Apr 2002 21:36:16 -0000	1.29
***************
*** 2128,2132 ****
    prefixLen = 0;
    if (ns && ns_triplets && binding->prefix->name) {
!     for (prefixLen; binding->prefix->name[prefixLen++];)
        ;
    }
--- 2128,2132 ----
    prefixLen = 0;
    if (ns && ns_triplets && binding->prefix->name) {
!     for (; binding->prefix->name[prefixLen++];)
        ;
    }