fixes bug #105998 about false detection of attribute consumption loop.

* parser.c: fixes bug #105998 about false detection of
  attribute consumption loop.
Daniel
diff --git a/ChangeLog b/ChangeLog
index 53780c8..04243ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 24 20:12:57 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+	* parser.c: fixes bug #105998 about false detection of
+	  attribute consumption loop.
+
 Mon Feb 24 19:14:57 CET 2003 Daniel Veillard <daniel@veillard.com>
 
 	* xinclude.c: Fixes bug #106931 in XInclude entities merging.
diff --git a/parser.c b/parser.c
index ce67e54..ba9327c 100644
--- a/parser.c
+++ b/parser.c
@@ -6727,7 +6727,8 @@
 	    if (ctxt->recovery == 0) ctxt->disableSAX = 1;
 	}
 	SKIP_BLANKS;
-        if ((cons == ctxt->input->consumed) && (q == CUR_PTR)) {
+        if ((cons == ctxt->input->consumed) && (q == CUR_PTR) &&
+            (attname == NULL) && (attvalue == NULL)) {
 	    ctxt->errNo = XML_ERR_INTERNAL_ERROR;
 	    if ((ctxt->sax != NULL) && (ctxt->sax->error != NULL))
 	        ctxt->sax->error(ctxt->userData,