applied patch from Marcus Meissner removing a strict aliasing problem
authorDaniel Veillard <veillard@src.gnome.org>
Tue, 5 Dec 2006 09:59:07 +0000 (09:59 +0000)
committerDaniel Veillard <veillard@src.gnome.org>
Tue, 5 Dec 2006 09:59:07 +0000 (09:59 +0000)
* libxslt/extensions.c: applied patch from Marcus Meissner removing
  a strict aliasing problem should fix #317921
Daniel

ChangeLog
libxslt/extensions.c

index 92252ac..2e05714 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Dec  5 10:45:04 CET 2006 Daniel Veillard <daniel@veillard.com>
+
+       * libxslt/extensions.c: applied patch from Marcus Meissner removing
+         a strict aliasing problem should fix #317921
+
 Fri Dec  1 23:02:27 HKT 2006 William Brack <wbrack@mmm.com.hk>
 
        * libxslt/transform.c: fixed problem with housekeeping of
index ddd5476..ee097db 100644 (file)
@@ -324,6 +324,7 @@ xsltExtModuleRegisterDynamic(const xmlChar * URI)
     const xmlChar *ext_directory = NULL;
     const xmlChar *protocol = NULL;
     xmlChar *i, *regfunc_name;
+    void *vregfunc;
     int rc;
 
     /* check for bad inputs */
@@ -414,7 +415,9 @@ xsltExtModuleRegisterDynamic(const xmlChar * URI)
     regfunc_name = xmlStrdup(ext_name);
     regfunc_name = xmlStrcat(regfunc_name, BAD_CAST "_init");
 
-    rc = xmlModuleSymbol(m, (const char *) regfunc_name, (void **) &regfunc);
+    vregfunc = NULL;
+    rc = xmlModuleSymbol(m, (const char *) regfunc_name, &vregfunc);
+    regfunc = vregfunc;
     if (0 == rc) {
         /* call the module's init function */
         (*regfunc) ();