commit | 702dcd0ef41dec08f87e6ab07e4903a2811f0197 | [log] [tgz] |
---|---|---|
author | Janos Follath <janos.follath@arm.com> | Fri Oct 28 14:59:12 2016 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Mon May 15 11:17:34 2017 +0100 |
tree | d96e6c64c263696a3ba8fbac2acf02d8e912cd16 | |
parent | d8fcfe7850da0925b6531c9f42dd3e7d7daf0324 [diff] [blame] |
Fix bug in threading sample implementation #667
diff --git a/library/threading.c b/library/threading.c index 83ec01a..0758675 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;