Return EINVAL if a NULL pointer is passed to the mutex routines, instead
authorMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 16:03:27 +0000 (16:03 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Fri, 9 May 2008 16:03:27 +0000 (16:03 +0000)
commit8db0383166af68bce269d7942d9f44d15bae24b9
tree7421df14b15c2ff9f871236cefbb0a5e868a733f
parentbb6aee915a8d7afbca19c9951b1bbe1168fd614f
Return EINVAL if a NULL pointer is passed to the mutex routines, instead
of crashing.  This appears to be what the standard intended and what libc_r
does.
lib/libthread_xu/thread/thr_mutex.c