[PATCH 2/5] core: for W32 gpgrt_lock_init needs explicit calling

thb at libreoffice.org thb at libreoffice.org
Tue Jan 30 15:18:07 CET 2018


From: Thorsten Behrens <Thorsten.Behrens at CIB.de>

--
Make sure the gpgrt_lock_init gets called in libgpg-error, otherwise
several critical section statics are uninitialized on W32.

Signed-off-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
---
 src/version.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/version.c b/src/version.c
index 99698fa7..8f2844e9 100644
--- a/src/version.c
+++ b/src/version.c
@@ -66,6 +66,9 @@ do_subsystem_inits (void)
     return;
 
 #ifdef HAVE_W32_SYSTEM
+  // initialize libgpg-error stuff
+  gpg_err_init();
+
   /* We need to make sure that the sockets are initialized.  */
   {
     WSADATA wsadat;
-- 
2.13.6




More information about the Gnupg-devel mailing list