mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
robert pointed out a loop error in callback cleanups Daniel
* xmlIO.c: robert pointed out a loop error in callback cleanups Daniel
This commit is contained in:
@ -1,3 +1,7 @@
|
||||
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:
|
||||
|
4
xmlIO.c
4
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;
|
||||
|
Reference in New Issue
Block a user