[Pkg-clamav-commits] [SCM] Debian repository for ClamAV branch, debian/unstable, updated. debian/0.95+dfsg-1-6156-g094ec9b

Török Edvin edwin at clamav.net
Sun Apr 4 01:03:13 UTC 2010


The following commit has been merged in the debian/unstable branch:
commit df52b258a64bd587ddaf3a2ea4c4bea3579747e4
Author: Török Edvin <edwin at clamav.net>
Date:   Mon Aug 31 17:44:38 2009 +0300

    prevent double init

diff --git a/libclamav/c++/bytecode2llvm.cpp b/libclamav/c++/bytecode2llvm.cpp
index a01af44..4072618 100644
--- a/libclamav/c++/bytecode2llvm.cpp
+++ b/libclamav/c++/bytecode2llvm.cpp
@@ -587,6 +587,9 @@ int cli_bytecode_prepare_jit(struct cli_all_bc *bcs)
 
 int bytecode_init(void)
 {
+    // If already initialized return
+    if (llvm_is_multithreaded())
+	return 0;
     llvm_install_error_handler(llvm_error_handler);
     sys::PrintStackTraceOnErrorSignal();
     atexit(do_shutdown);

-- 
Debian repository for ClamAV



More information about the Pkg-clamav-commits mailing list