diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-08-23 10:24:27 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-08-23 10:24:27 +0000 |
commit | bc2ddbe7c3cc496c843667b157a68d4fee4def90 (patch) | |
tree | cde4e63c22d4fb89e11562ed730a73ebb6577361 /catalog.c | |
parent | ffb120d9960eda1b42d7c58739a8f5f7dcf87126 (diff) | |
download | android_external_libxml2-bc2ddbe7c3cc496c843667b157a68d4fee4def90.tar.gz android_external_libxml2-bc2ddbe7c3cc496c843667b157a68d4fee4def90.tar.bz2 android_external_libxml2-bc2ddbe7c3cc496c843667b157a68d4fee4def90.zip |
fixed bugi #59406 in SGML catalog parsing reported by Jun Kuriyama Daniel
* catalog.c: fixed bugi #59406 in SGML catalog parsing reported by
Jun Kuriyama
Daniel
Diffstat (limited to 'catalog.c')
-rw-r--r-- | catalog.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1512,8 +1512,10 @@ xmlParseSGMLCatalog(const xmlChar *value, const char *file) { return(-1); base = xmlStrdup((const xmlChar *) file); - while ((cur != NULL) && (cur[0] != '0')) { + while ((cur != NULL) && (cur[0] != 0)) { SKIP_BLANKS; + if (cur[0] == 0) + break; if ((cur[0] == '-') && (cur[1] == '-')) { cur = xmlParseSGMLCatalogComment(cur); if (cur == NULL) { |