[libxml2] Fix an init bug in global.c



commit 2c2128387d7b5670f7f4a54cedc45b3b29552630
Author: Kai Henning <kai_henning web de>
Date:   Mon Oct 12 22:30:32 2009 +0200

    Fix an init bug in global.c
    
    * globals.c: fix the initialization of the mutex

 globals.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/globals.c b/globals.c
index 1f807d8..69002f0 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();
 }
 



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