From c26f3b3cd5154f49b2780bc565190e564299d581 Mon Sep 17 00:00:00 2001 From: krangelov Date: Tue, 16 Nov 2021 09:36:26 +0100 Subject: [PATCH] an attempt to fix the failure on MacOS --- src/runtime/c/pgf/db.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/c/pgf/db.cxx b/src/runtime/c/pgf/db.cxx index e76ceaed9..a68ada8fc 100644 --- a/src/runtime/c/pgf/db.cxx +++ b/src/runtime/c/pgf/db.cxx @@ -696,6 +696,7 @@ void PgfDB::init_state(size_t size) throw pgf_systemerror(code); } } + memset(&ms->rwlock, 0, sizeof(ms->rwlock)); if ((code = pthread_rwlock_init(&ms->rwlock, &attr)) != 0) { pthread_rwlockattr_destroy(&attr); throw pgf_systemerror(code);