diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-11-27 16:23:50 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-11-27 16:23:50 +0000 |
commit | 107ccaa1f77b94f646b460131bf638e4dc45d332 (patch) | |
tree | 7e2092d1f5f6c4559e3025d784f5b03a697983c0 /xmlIO.c | |
parent | db9dfd9e532f40416ba17de85221f7f67bad31d8 (diff) | |
download | android_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |