commit | 6e876988ded77414f1c997b406993e3133da988f | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Fri Oct 28 14:59:12 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Tue May 16 10:22:37 2017 +0100 |
tree | e670ee35c6dd17f57dcf6a97b244e4f7db0ec364 | |
parent | 45182a0065fc5d712a2434cd025ae81720c334e4 [diff] [blame] |
Fix bug in threading sample implementation #667
diff --git a/library/threading.c b/library/threading.c index 81c1075..55091e8 100644 --- a/library/threading.c +++ b/library/threading.c
@@ -32,7 +32,7 @@ #if defined(MBEDTLS_THREADING_PTHREAD) static void threading_mutex_init_pthread( mbedtls_threading_mutex_t *mutex ) { - if( mutex == NULL || mutex->is_valid ) + if( mutex == NULL ) return; mutex->is_valid = pthread_mutex_init( &mutex->mutex, NULL ) == 0;