diff --git a/ChangeLog b/ChangeLog index 62d75e0b..5cedaf02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 27 17:22:36 CET 2001 Daniel Veillard + + * xmlIO.c: robert pointed out a loop error in callback cleanups + Mon Nov 26 16:56:00 CET 2001 Daniel Veillard * tree.c debugXML.c include/libxml/tree.h include/libxml/debugXML.h: diff --git a/xmlIO.c b/xmlIO.c index 7fd101c7..b9b9ae61 100644 --- a/xmlIO.c +++ b/xmlIO.c @@ -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;