From d2afa277f6db4f7b3f3a636f12e44dd56b010f77 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 16 Nov 2005 11:48:24 +0000 Subject: [PATCH] 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 --- ChangeLog | 5 +++++ libexslt/functions.c | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0cdac5d..87a678a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 16 12:47:25 CET 2005 Daniel Veillard + + * libexslt/functions.c: fix an problem raised by Ralf Junker in the + use of xmlHashScanFull() fixes bug #321582 + Sun Nov 6 19:22:45 CET 2005 Daniel Veillard * libxslt/attrvt.c: added a missing parameter to a debug function diff --git a/libexslt/functions.c b/libexslt/functions.c index b1804cc..57e90c4 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)); -- 2.7.4