diff options
author | rpj <rpj> | 2005-05-08 16:55:02 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-08 16:55:02 +0000 |
commit | ac8e3d247fa03af61b5411f92508481e7c3f49f8 (patch) | |
tree | f5d9c2a8bc58a2e6135e8aa2b207daab23de14a7 /pthread_mutex_lock.c | |
parent | 7523c7c4d75652f67cd31cb123e1268790394c8b (diff) |
''
Diffstat (limited to 'pthread_mutex_lock.c')
-rw-r--r-- | pthread_mutex_lock.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pthread_mutex_lock.c b/pthread_mutex_lock.c index 301f7bf..4ca5c25 100644 --- a/pthread_mutex_lock.c +++ b/pthread_mutex_lock.c @@ -49,6 +49,10 @@ pthread_mutex_lock (pthread_mutex_t * mutex) /* * Let the system deal with invalid pointers. */ + if (*mutex == NULL) + { + return EINVAL; + } /* * We do a quick check to see if we need to do more work |