Skip to content
Snippets Groups Projects
Commit 95c8f7905f81 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

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
parent 27f649f5fb70
Branches
No related tags found
No related merge requests found
Wed Nov 16 12:47:25 CET 2005 Daniel Veillard <daniel@veillard.com>
* 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 <daniel@veillard.com> Sun Nov 6 19:22:45 CET 2005 Daniel Veillard <daniel@veillard.com>
* libxslt/attrvt.c: added a missing parameter to a debug function * libxslt/attrvt.c: added a missing parameter to a debug function
......
...@@ -68,7 +68,8 @@ ...@@ -68,7 +68,8 @@
static void static void
exsltFuncRegisterFunc (exsltFuncFunctionData *data, exsltFuncRegisterFunc (exsltFuncFunctionData *data,
xsltTransformContextPtr ctxt, 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)) if ((data == NULL) || (ctxt == NULL) || (URI == NULL) || (name == NULL))
return; return;
...@@ -92,7 +93,8 @@ ...@@ -92,7 +93,8 @@
static void static void
exsltFuncRegisterImportFunc (exsltFuncFunctionData *data, exsltFuncRegisterImportFunc (exsltFuncFunctionData *data,
exsltFuncImportRegData *ch, exsltFuncImportRegData *ch,
const xmlChar *URI, const xmlChar *name) { const xmlChar *URI, const xmlChar *name,
ATTRIBUTE_UNUSED const xmlChar *ignored) {
exsltFuncFunctionData *func=NULL; exsltFuncFunctionData *func=NULL;
if ((data == NULL) || (ch == NULL) || (URI == NULL) || (name == NULL)) if ((data == NULL) || (ch == NULL) || (URI == NULL) || (name == NULL))
...@@ -102,8 +104,7 @@ ...@@ -102,8 +104,7 @@
return; return;
/* Check if already present */ /* Check if already present */
func = (exsltFuncFunctionData*)xmlHashLookup2(ch->hash, func = (exsltFuncFunctionData*)xmlHashLookup2(ch->hash, URI, name);
URI, name);
if (func == NULL) { /* Not yet present - copy it in */ if (func == NULL) { /* Not yet present - copy it in */
func = exsltFuncNewFunctionData(); func = exsltFuncNewFunctionData();
memcpy(func, data, sizeof(exsltFuncFunctionData)); memcpy(func, data, sizeof(exsltFuncFunctionData));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment