Re: [xml] Possible bug in globals.c



On Thu, Oct 08, 2009 at 01:03:01PM +0200, Kai Henning wrote:
IMO you should change in xmlInitGlobals()

    if (xmlThrDefMutex != NULL)

to

   if (xmlThrDefMutex == NULL)


because you must allocate memory when xmlThrDefMutex is NULL (from static initialization).

  Damn, it's unbelieveable how much breackage happened around the thread
code recently, thanks for raising this !

  Applied,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]