summaryrefslogtreecommitdiff
path: root/threads.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@redhat.com>2009-06-04 11:08:39 +0200
committerDaniel Veillard <veillard@redhat.com>2009-06-04 11:08:39 +0200
commit7dd7080ad70c59ab21514b741a47128eb424dd35 (patch)
tree479f93fc2d4c0be08348b60092e8ff6e301d5dfb /threads.c
parent4d3e2da7f862d37e0f9adbd476531f43e02f495d (diff)
downloadlibxml2-7dd7080ad70c59ab21514b741a47128eb424dd35.tar.gz
* parser.c threads.c: change the threading initialization sequence
as suggested by Igor Novoseltsev to avoid crash if xmlInitParser() is called from a thread which is not the main one, should fix #584605 daniel
Diffstat (limited to 'threads.c')
-rw-r--r--threads.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/threads.c b/threads.c
index 073fd142..25e27908 100644
--- a/threads.c
+++ b/threads.c
@@ -852,9 +852,6 @@ xmlUnlockLibrary(void)
void
xmlInitThreads(void)
{
-#ifdef DEBUG_THREADS
- xmlGenericError(xmlGenericErrorContext, "xmlInitThreads()\n");
-#endif
#if defined(HAVE_WIN32_THREADS) && !defined(HAVE_COMPILER_TLS) && (!defined(LIBXML_STATIC) || defined(LIBXML_STATIC_FOR_DLL))
InitializeCriticalSection(&cleanup_helpers_cs);
#endif