- added xmlRemoveProp
- changed the way Windows socket stuff get included
- removed an indetermination xmLDecl/PI(xml...)
- xmlNewNs wasn't checking for double definition
- fixed a problem with dist-hook duplicates
- fixed the loading of external entities APIs, now xmlLoadExternalEntity()
is used everywhere
- now the xhtml spec validates with the xhtml DTD.
- error.c: fixed crashes in case of no input stream
- added the xhtml spec and dtds to the validation tests and results
Daniel
diff --git a/error.c b/error.c
index 18fdbd0..3191d80 100644
--- a/error.c
+++ b/error.c
@@ -46,6 +46,7 @@
const xmlChar *cur, *base;
int n;
+ if (input == NULL) return;
cur = input->cur;
base = input->base;
while ((cur > base) && ((*cur == '\n') || (*cur == '\r'))) {
@@ -91,7 +92,7 @@
va_list args;
input = ctxt->input;
- if ((input->filename == NULL) && (ctxt->inputNr > 1)) {
+ if ((input != NULL) && (input->filename == NULL) && (ctxt->inputNr > 1)) {
cur = input;
input = ctxt->inputTab[ctxt->inputNr - 2];
}
@@ -129,7 +130,7 @@
va_list args;
input = ctxt->input;
- if ((input->filename == NULL) && (ctxt->inputNr > 1)) {
+ if ((input != NULL) && (input->filename == NULL) && (ctxt->inputNr > 1)) {
cur = input;
input = ctxt->inputTab[ctxt->inputNr - 2];
}