summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
authorKai Henning <kai_henning@web.de>2009-10-12 22:30:32 +0200
committerDaniel Veillard <veillard@redhat.com>2009-10-12 22:30:32 +0200
commit2c2128387d7b5670f7f4a54cedc45b3b29552630 (patch)
tree31f7b3c18e3e6efcfd8c0d8fff6e4fe7fb2be52d /globals.c
parent1934b0c0fa8dff467955ae51118b69716a75f62b (diff)
downloadlibxml2-2c2128387d7b5670f7f4a54cedc45b3b29552630.tar.gz
Fix an init bug in global.c
* globals.c: fix the initialization of the mutex
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/globals.c b/globals.c
index 1f807d8e..69002f00 100644
--- a/globals.c
+++ b/globals.c
@@ -46,7 +46,7 @@ static xmlMutexPtr xmlThrDefMutex = NULL;
*/
void xmlInitGlobals(void)
{
- if (xmlThrDefMutex != NULL)
+ if (xmlThrDefMutex == NULL)
xmlThrDefMutex = xmlNewMutex();
}