diff options
| author | John Polstra <jdp@FreeBSD.org> | 2000-11-01 20:19:07 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 2000-11-01 20:19:07 +0000 |
| commit | a9bda22cd698374f61b1705da211d68ead9d98ab (patch) | |
| tree | a1fbbcb2025774adbcf7ac9739da2fd7c205c3c5 /lib/libpthread/thread/thr_mutex.c | |
| parent | 5231fb205976315032c487476daccfbbb7ae8f5c (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_mutex.c')
| -rw-r--r-- | lib/libpthread/thread/thr_mutex.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpthread/thread/thr_mutex.c b/lib/libpthread/thread/thr_mutex.c index f7662c71c951..ec6c0f6f4e6a 100644 --- a/lib/libpthread/thread/thr_mutex.c +++ b/lib/libpthread/thread/thr_mutex.c @@ -402,6 +402,9 @@ pthread_mutex_lock(pthread_mutex_t * mutex) { int ret = 0; + if (_thread_initial == NULL) + _thread_init(); + if (mutex == NULL) ret = EINVAL; |
