aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-11-27 16:23:50 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-11-27 16:23:50 +0000
commit107ccaa1f77b94f646b460131bf638e4dc45d332 (patch)
tree7e2092d1f5f6c4559e3025d784f5b03a697983c0 /xmlIO.c
parentdb9dfd9e532f40416ba17de85221f7f67bad31d8 (diff)
downloadandroid_external_libxml2-107ccaa1f77b94f646b460131bf638e4dc45d332.tar.gz
android_external_libxml2-107ccaa1f77b94f646b460131bf638e4dc45d332.tar.bz2
android_external_libxml2-107ccaa1f77b94f646b460131bf638e4dc45d332.zip
robert pointed out a loop error in callback cleanups Daniel
* xmlIO.c: robert pointed out a loop error in callback cleanups Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c4
1 files changed, 2 insertions, 2 deletions
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;