git » fp-git.git » commit 01a7c95

added comment

author ecalot
2005-12-21 01:51:29 UTC
committer ecalot
2005-12-21 01:51:29 UTC
parent 5bc24dccfbe5805beaa422407516bbeedaf3700e

added comment

PR/src/lib/xml/tree.c +1 -1
PR/src/lib/xml/unknown.c +1 -1

diff --git a/PR/src/lib/xml/tree.c b/PR/src/lib/xml/tree.c
index b15be5c..28c5cf4 100644
--- a/PR/src/lib/xml/tree.c
+++ b/PR/src/lib/xml/tree.c
@@ -93,7 +93,7 @@ void endUnknownXml(int optionflag, const char* backupExtension) {
 		fwrite(RES_XML_UNKNOWN_END,1,sizeof(RES_XML_UNKNOWN_END)-1,unknownXmlFile);
 		writeCloseOk(unknownXmlFile,optionflag,backupExtension);
 		unknownXmlFile=NULL;
-		for (i=0;i<RES_TYPECOUNT;i++) typeCount[i]=0;
+		for (i=0;i<RES_TYPECOUNT;i++) typeCount[i]=0; /* re-initialize in 0 for next file processing */
 	}
 }
 
diff --git a/PR/src/lib/xml/unknown.c b/PR/src/lib/xml/unknown.c
index b15be5c..28c5cf4 100644
--- a/PR/src/lib/xml/unknown.c
+++ b/PR/src/lib/xml/unknown.c
@@ -93,7 +93,7 @@ void endUnknownXml(int optionflag, const char* backupExtension) {
 		fwrite(RES_XML_UNKNOWN_END,1,sizeof(RES_XML_UNKNOWN_END)-1,unknownXmlFile);
 		writeCloseOk(unknownXmlFile,optionflag,backupExtension);
 		unknownXmlFile=NULL;
-		for (i=0;i<RES_TYPECOUNT;i++) typeCount[i]=0;
+		for (i=0;i<RES_TYPECOUNT;i++) typeCount[i]=0; /* re-initialize in 0 for next file processing */
 	}
 }