Commit 107ccaa1 authored by Daniel Veillard's avatar Daniel Veillard

robert pointed out a loop error in callback cleanups Daniel

* xmlIO.c: robert pointed out a loop error in callback cleanups
Daniel
parent db9dfd9e
Tue Nov 27 17:22:36 CET 2001 Daniel Veillard <daniel@veillard.com>
* xmlIO.c: robert pointed out a loop error in callback cleanups
Mon Nov 26 16:56:00 CET 2001 Daniel Veillard <daniel@veillard.com>
* tree.c debugXML.c include/libxml/tree.h include/libxml/debugXML.h:
......
......@@ -136,7 +136,7 @@ xmlCleanupInputCallbacks(void)
if (!xmlInputCallbackInitialized)
return;
for (i = xmlInputCallbackNr - 1; i <= 0; i--) {
for (i = xmlInputCallbackNr - 1; i >= 0; i--) {
xmlInputCallbackTable[i].matchcallback = NULL;
xmlInputCallbackTable[i].opencallback = NULL;
xmlInputCallbackTable[i].readcallback = NULL;
......@@ -161,7 +161,7 @@ xmlCleanupOutputCallbacks(void)
if (!xmlOutputCallbackInitialized)
return;
for (i = xmlOutputCallbackNr - 1; i <= 0; i--) {
for (i = xmlOutputCallbackNr - 1; i >= 0; i--) {
xmlOutputCallbackTable[i].matchcallback = NULL;
xmlOutputCallbackTable[i].opencallback = NULL;
xmlOutputCallbackTable[i].writecallback = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment