1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-08-07 10:42:55 +03:00

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
This commit is contained in:
Daniel Veillard
2005-11-16 11:48:24 +00:00
parent e6d9965778
commit d2afa277f6
2 changed files with 10 additions and 4 deletions

View File

@@ -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));