summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-09-29 13:43:13 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-09-29 13:43:13 +0000
commit041c2feea7c594aa475e74bca852c8bed7618c9d (patch)
tree53984b78e0ff101e9936f4ca40c3de6050a78307
parentd9cf00372fda2672369fa7275f5084f5def15cf4 (diff)
downloadlibxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.tar.gz
libxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.tar.bz2
libxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.zip
try to fix #153137 but without a test case it's shooting in the dark.
* libxslt/pattern.c: try to fix #153137 but without a test case it's shooting in the dark. Daniel
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/pattern.c8
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a0d3446..ed54771f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Sep 29 15:42:33 CEST 2004 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/pattern.c: try to fix #153137 but without a test case
+ it's shooting in the dark.
+
Tue Sep 28 16:20:48 CEST 2004 Daniel Veillard <daniel@veillard.com>
* doc/tutorial2/libxslt_pipes.*: New tutorial from Panagiotis Louridas
diff --git a/libxslt/pattern.c b/libxslt/pattern.c
index 68259cd3..477b514a 100644
--- a/libxslt/pattern.c
+++ b/libxslt/pattern.c
@@ -770,7 +770,9 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp,
* If the node is in a Value Tree we cannot
* cache it !
*/
- if (node->doc != NULL) {
+ if ((node->doc != NULL) &&
+ (node->doc->name != NULL) &&
+ (node->doc->name[0] != ' ')) {
len = (int)
XSLT_RUNTIME_EXTRA(ctxt, select->lenExtra);
XSLT_RUNTIME_EXTRA(ctxt,
@@ -875,7 +877,9 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp,
* If the node is in a Value Tree we cannot
* cache it !
*/
- if (node->doc != NULL) {
+ if ((node->doc != NULL) &&
+ (node->doc->name != NULL) &&
+ (node->doc->name[0] != ' ')) {
len = (int)
XSLT_RUNTIME_EXTRA(ctxt, select->lenExtra);
XSLT_RUNTIME_EXTRA(ctxt,