aboutsummaryrefslogtreecommitdiffstats
path: root/catalog.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-08-23 10:24:27 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-08-23 10:24:27 +0000
commitbc2ddbe7c3cc496c843667b157a68d4fee4def90 (patch)
treecde4e63c22d4fb89e11562ed730a73ebb6577361 /catalog.c
parentffb120d9960eda1b42d7c58739a8f5f7dcf87126 (diff)
downloadandroid_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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/catalog.c b/catalog.c
index 3ec98f8a..2fec3b4d 100644
--- a/catalog.c
+++ b/catalog.c
@@ -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) {