Skip to content

Commit

Permalink
Fix an init bug in global.c
Browse files Browse the repository at this point in the history
* globals.c: fix the initialization of the mutex
  • Loading branch information
Kai Henning authored and veillard committed Oct 12, 2009
1 parent 1934b0c commit 2c21283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion globals.c
Expand Up @@ -46,7 +46,7 @@ static xmlMutexPtr xmlThrDefMutex = NULL;
*/
void xmlInitGlobals(void)
{
if (xmlThrDefMutex != NULL)
if (xmlThrDefMutex == NULL)
xmlThrDefMutex = xmlNewMutex();
}

Expand Down

0 comments on commit 2c21283

Please sign in to comment.