From 112cb5bb5475afec1c1cbf1d6728ce4880d0fee8 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Tue, 12 Jul 2005 19:58:48 +0000 Subject: Load /tmp/tmp.zfIyNk/libxml2-2.6.20 into packages/libxml2/branches/upstream/current. --- error.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'error.c') diff --git a/error.c b/error.c index d9505e4..17ced92 100644 --- a/error.c +++ b/error.c @@ -512,8 +512,10 @@ __xmlRaiseError(xmlStructuredErrorFunc schannel, } else if ((node != NULL) && (file == NULL)) { int i; - if ((node->doc != NULL) && (node->doc->URL != NULL)) + if ((node->doc != NULL) && (node->doc->URL != NULL)) { baseptr = node; + file = (const char *) node->doc->URL; + } for (i = 0; ((i < 10) && (node != NULL) && (node->type != XML_ELEMENT_NODE)); i++) -- cgit v1.2.3