Permalink
Browse files

Fix an init bug in global.c

* globals.c: fix the initialization of the mutex
  • Loading branch information...
1 parent 1934b0c commit 2c2128387d7b5670f7f4a54cedc45b3b29552630 Kai Henning committed with veillard Oct 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 globals.c
View
@@ -46,7 +46,7 @@ static xmlMutexPtr xmlThrDefMutex = NULL;
*/
void xmlInitGlobals(void)
{
- if (xmlThrDefMutex != NULL)
+ if (xmlThrDefMutex == NULL)
xmlThrDefMutex = xmlNewMutex();
}

0 comments on commit 2c21283

Please sign in to comment.