diff options
author | Kai Henning <kai_henning@web.de> | 2009-10-12 22:30:32 +0200 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2009-10-12 22:30:32 +0200 |
commit | 2c2128387d7b5670f7f4a54cedc45b3b29552630 (patch) | |
tree | 31f7b3c18e3e6efcfd8c0d8fff6e4fe7fb2be52d /globals.c | |
parent | 1934b0c0fa8dff467955ae51118b69716a75f62b (diff) | |
download | libxml2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -46,7 +46,7 @@ static xmlMutexPtr xmlThrDefMutex = NULL; */ void xmlInitGlobals(void) { - if (xmlThrDefMutex != NULL) + if (xmlThrDefMutex == NULL) xmlThrDefMutex = xmlNewMutex(); } |