fix bug #165201 when calling xsltInit() multiple times. Daniel
authorDaniel Veillard <veillard@src.gnome.org>
Tue, 29 Mar 2005 13:38:57 +0000 (13:38 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Tue, 29 Mar 2005 13:38:57 +0000 (13:38 +0000)
* libxslt/xslt.c: fix bug #165201 when calling xsltInit() multiple
  times.
Daniel

ChangeLog
libxslt/xslt.c

index 465a548..7c584d5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Mar 29 15:37:13 CEST 2005 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/xslt.c: fix bug #165201 when calling xsltInit() multiple
+         times.
+
 Tue Mar 29 15:13:59 CEST 2005 Daniel Veillard <daniel@veillard.com>
 
        * libxslt/preproc.c libxslt/xslt.c libxslt/xsltInternals.h: 
index 9be9533..f55dba3 100644 (file)
@@ -150,12 +150,7 @@ exclPrefixPop(xsltStylesheetPtr style)
  */
 static void
 xsltInit (void) {
-    static int initialized = 0;
-
-    if (initialized == 0) {
-       initialized = 1;
-       xsltRegisterAllExtras();
-    }
+    xsltRegisterAllExtras();
 }
 
 /**