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)


   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 !



Daniel Veillard      | libxml Gnome XML XSLT toolkit
daniel veillard com  | Rpmfind RPM search engine | virtualization library

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