summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-02-14 11:52:12 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-02-14 11:52:12 +0000
commit0ee565628b3e4b3581a1b0b96e37c9b20d2dd30a (patch)
tree72950f8f09e149f7694de575d8ede5fec065fefa
parenta4f9ea09719fca15fcce215902fe49fde05ffac8 (diff)
downloadlibxslt-0ee565628b3e4b3581a1b0b96e37c9b20d2dd30a.tar.gz
libxslt-0ee565628b3e4b3581a1b0b96e37c9b20d2dd30a.tar.bz2
libxslt-0ee565628b3e4b3581a1b0b96e37c9b20d2dd30a.zip
added a cretion of ctxt->globalVars in xsltProcessUserParamInternal if
* libxslt/variables.c: added a cretion of ctxt->globalVars in xsltProcessUserParamInternal if missing. Daniel
-rw-r--r--ChangeLog5
-rw-r--r--libxslt/variables.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 05a29e99..f5ed1f9e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Feb 14 12:51:07 CET 2005 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/variables.c: added a cretion of ctxt->globalVars in
+ xsltProcessUserParamInternal if missing.
+
Wed Feb 9 21:58:56 CET 2005 Daniel Veillard <daniel@veillard.com>
* doc/Makefile.am doc/libxslt-api.xml doc/libxslt-refs.xml
diff --git a/libxslt/variables.c b/libxslt/variables.c
index 1ee516ed..c9049af3 100644
--- a/libxslt/variables.c
+++ b/libxslt/variables.c
@@ -940,6 +940,8 @@ xsltProcessUserParamInternal(xsltTransformContextPtr ctxt,
xsltTransformError(ctxt, style, NULL,
"Global parameter %s already defined\n", name);
}
+ if (ctxt->globalVars == NULL)
+ ctxt->globalVars = xmlHashCreate(20);
/*
* do not overwrite variables with parameters from the command line