From 7395b1431d5e2160682de273b46252c747ccbf36 Mon Sep 17 00:00:00 2001 From: rpj Date: Sun, 8 May 2005 16:52:50 +0000 Subject: '' --- pthread_mutex_lock.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pthread_mutex_lock.c') 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 -- cgit v1.2.3