diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-02-14 11:52:12 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-02-14 11:52:12 +0000 |
commit | 0ee565628b3e4b3581a1b0b96e37c9b20d2dd30a (patch) | |
tree | 72950f8f09e149f7694de575d8ede5fec065fefa | |
parent | a4f9ea09719fca15fcce215902fe49fde05ffac8 (diff) | |
download | libxslt-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-- | ChangeLog | 5 | ||||
-rw-r--r-- | libxslt/variables.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -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 |