diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-11-16 11:48:24 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-11-16 11:48:24 +0000 |
commit | d2afa277f6db4f7b3f3a636f12e44dd56b010f77 (patch) | |
tree | c72865d0f34406bb99329027f8edcda755cb3d01 /libexslt | |
parent | e6d9965778101c977c695b75a2a97d2cc4982e58 (diff) | |
download | libxslt-d2afa277f6db4f7b3f3a636f12e44dd56b010f77.tar.gz libxslt-d2afa277f6db4f7b3f3a636f12e44dd56b010f77.tar.bz2 libxslt-d2afa277f6db4f7b3f3a636f12e44dd56b010f77.zip |
fix an problem raised by Ralf Junker in the use of xmlHashScanFull() fixes
* libexslt/functions.c: fix an problem raised by Ralf Junker in the
use of xmlHashScanFull() fixes bug #321582
Daniel
Diffstat (limited to 'libexslt')
-rw-r--r-- | libexslt/functions.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libexslt/functions.c b/libexslt/functions.c index b1804ccf..57e90c4f 100644 --- a/libexslt/functions.c +++ b/libexslt/functions.c @@ -68,7 +68,8 @@ static exsltFuncFunctionData *exsltFuncNewFunctionData(void); static void exsltFuncRegisterFunc (exsltFuncFunctionData *data, xsltTransformContextPtr ctxt, - const xmlChar *URI, const xmlChar *name) { + const xmlChar *URI, const xmlChar *name, + ATTRIBUTE_UNUSED const xmlChar *ignored) { if ((data == NULL) || (ctxt == NULL) || (URI == NULL) || (name == NULL)) return; @@ -92,7 +93,8 @@ exsltFuncRegisterFunc (exsltFuncFunctionData *data, static void exsltFuncRegisterImportFunc (exsltFuncFunctionData *data, exsltFuncImportRegData *ch, - const xmlChar *URI, const xmlChar *name) { + const xmlChar *URI, const xmlChar *name, + ATTRIBUTE_UNUSED const xmlChar *ignored) { exsltFuncFunctionData *func=NULL; if ((data == NULL) || (ch == NULL) || (URI == NULL) || (name == NULL)) @@ -102,8 +104,7 @@ exsltFuncRegisterImportFunc (exsltFuncFunctionData *data, return; /* Check if already present */ - func = (exsltFuncFunctionData*)xmlHashLookup2(ch->hash, - URI, name); + func = (exsltFuncFunctionData*)xmlHashLookup2(ch->hash, URI, name); if (func == NULL) { /* Not yet present - copy it in */ func = exsltFuncNewFunctionData(); memcpy(func, data, sizeof(exsltFuncFunctionData)); |