fix crash if pthread_mutex_unlock is called without ever locking
authorRich Felker <dalias@aerifal.cx>
Mon, 3 Oct 2011 04:11:16 +0000 (00:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 3 Oct 2011 04:11:16 +0000 (00:11 -0400)
commitb8688ff87574fad6b3056443a5385010952fb243
tree7df75ffc26a4ea088ed100bd03309326bdbfce20
parent7fe58d3511387ab6c57909f6e4baef58acd6bd56
fix crash if pthread_mutex_unlock is called without ever locking

this is valid for error-checking mutexes; otherwise it invokes UB and
would be justified in crashing.
src/thread/pthread_mutex_unlock.c