summaryrefslogtreecommitdiff
path: root/trust
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-07-20 13:11:36 +0200
committerDaiki Ueno <ueno@gnu.org>2018-08-10 10:11:24 +0200
commitf04c2a84ad2a017a778fa2f23719318acb9ca89f (patch)
tree3fe93175e0966d29d3bf015c9bb9dd7498e65870 /trust
parent5b18e77e9dbb6a598812427ba07ad6df63eb7a67 (diff)
common, p11-kit, trust: Use pthread_once only when necessary
If the ELF constructor is usable, we don't really need the once-init function because it is guaranteed that the code runs only once in the constructor.
Diffstat (limited to 'trust')
-rw-r--r--trust/module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/module.c b/trust/module.c
index 82a3fdf..fc67a4d 100644
--- a/trust/module.c
+++ b/trust/module.c
@@ -1845,7 +1845,7 @@ __attribute__((constructor))
void
p11_trust_module_init (void)
{
- p11_library_init_once ();
+ p11_library_init ();
}
#ifdef __GNUC__