summaryrefslogtreecommitdiff
path: root/error.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-07-13 23:07:49 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-07-13 23:07:49 +0000
commitda0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a (patch)
tree5ee33b648f2be4054990cbaefb9f0a05c2ff8d15 /error.c
parent358fef4b1e6721fc9fb6c48a25fbac85cd222d34 (diff)
downloadlibxml2-da0aa4cfdbd9b71e01bc452c95d044bbe66e1b5a.tar.gz
applied patch from Marcus Boerger to route relaxng and schemas error
* error.c relaxng.c xmlreader.c xmlschemas.c include/libxml/relaxng.h include/libxml/xmlschemas.h: applied patch from Marcus Boerger to route relaxng and schemas error messages when using the reader through the structured interface if activated. * elfgcchack.h doc/* testapi.c: rebuilt since this add new APIs to test. Daniel
Diffstat (limited to 'error.c')
-rw-r--r--error.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/error.c b/error.c
index 17ced922..b0d0f147 100644
--- a/error.c
+++ b/error.c
@@ -595,8 +595,10 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel,
schannel = xmlStructuredError;
else
channel = xmlGenericError;
+ if (!data) {
data = xmlGenericErrorContext;
}
+ }
if (schannel != NULL) {
schannel(data, to);
return;