Skip to content

Commit

Permalink
patch from Vasily Tchekalkin fixing bug #111420 about double
Browse files Browse the repository at this point in the history
*  libxslt/extensions.c: patch from Vasily Tchekalkin fixing
   bug #111420 about double initialization of extension contexts
Daniel
  • Loading branch information
Daniel Veillard committed Apr 23, 2003
1 parent 6b9c89d commit ac5c292
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Wed Apr 23 17:00:16 CEST 2003 Daniel Veillard <daniel@veillard.com>

* libxslt/extensions.c: patch from Vasily Tchekalkin fixing
bug #111420 about double initialization of extension contexts

Wed Apr 23 14:25:46 CEST 2003 Daniel Veillard <daniel@veillard.com>

* libxslt/transform.c: fix bug #110577 namespace in copy-of
Expand Down
9 changes: 9 additions & 0 deletions libxslt/extensions.c
Expand Up @@ -591,6 +591,15 @@ xsltInitCtxtExt (xsltExtDataPtr styleData, xsltInitExtCtxt *ctxt,
return;
}

ctxtData = (xsltExtDataPtr) xmlHashLookup(ctxt->ctxt->extInfos, URI);
if (ctxtData != NULL) {
#ifdef WITH_XSLT_DEBUG_EXTENSIONS
xsltGenericDebug(xsltGenericDebugContext,
"xsltInitCtxtExt: already initialized\n");
#endif
return;
}

extData = module->initFunc(ctxt->ctxt, URI);
if (extData == NULL) {
#ifdef WITH_XSLT_DEBUG_EXTENSIONS
Expand Down

0 comments on commit ac5c292

Please sign in to comment.