summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-05-10 18:21:45 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-05-10 18:21:45 +0000
commit894be3f23429b5aef8330506d0d2655ade4e132f (patch)
tree473cf0debf04d0b3d8d36caed049e75294eba7ce
parent876e304e8836c69eb623f6d9bb6a1dd0a6c9129a (diff)
downloadlibxslt-894be3f23429b5aef8330506d0d2655ade4e132f.tar.gz
libxslt-894be3f23429b5aef8330506d0d2655ade4e132f.tar.bz2
libxslt-894be3f23429b5aef8330506d0d2655ade4e132f.zip
fixed a segfault introduced with the RVT handling change, bug #112703 .
* libxslt/transform.c: fixed a segfault introduced with the RVT handling change, bug #112703 . Daniel
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/transform.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0638332d..245cfcdd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat May 10 14:19:14 EDT 2003 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/transform.c: fixed a segfault introduced with the RVT
+ handling change, bug #112703 .
+
Sat May 10 13:05:21 EDT 2003 Daniel Veillard <daniel@veillard.com>
* libxslt/xslt.c: make sure stylesheet compilation errors
diff --git a/libxslt/transform.c b/libxslt/transform.c
index 7e6236a3..46cc3b63 100644
--- a/libxslt/transform.c
+++ b/libxslt/transform.c
@@ -3016,6 +3016,7 @@ xsltApplyTemplates(xsltTransformContextPtr ctxt, xmlNodePtr node,
case XML_TEXT_NODE:
if ((IS_BLANK_NODE(cur)) &&
(cur->parent != NULL) &&
+ (cur->parent->type == XML_ELEMENT_NODE) &&
(ctxt->style->stripSpaces != NULL)) {
const xmlChar *val;