summaryrefslogtreecommitdiffstats
path: root/lib/libdevinfo
diff options
context:
space:
mode:
authormtm <mtm@FreeBSD.org>2004-09-22 16:53:23 +0000
committermtm <mtm@FreeBSD.org>2004-09-22 16:53:23 +0000
commit59b52ed829c8199391024052fe9e5647452fcdb7 (patch)
tree3c659c63b5b5fb7aad8bae17ea60a1e89767c367 /lib/libdevinfo
parentcf1b8fbca5432f624ea9a8b572cc5ba250278fa5 (diff)
downloadFreeBSD-src-59b52ed829c8199391024052fe9e5647452fcdb7.zip
FreeBSD-src-59b52ed829c8199391024052fe9e5647452fcdb7.tar.gz
The SUSv3 function say that the affected functions MAY FAIL, if the
specified mutex is invalid. In spec parlance 'MAY FAIL' means it's up to the implementor. So, remove the check for NULL pointers for two reasons: 1. A mutex may be invalid without necessarily being NULL. 2. If the pointer to the mutex is NULL core-dumping in the vicinity of the problem is much much much better than failing in some other part of the code (especially when the application doesn't check the return value of the function that you oh so helpfully set to EINVAL).
Diffstat (limited to 'lib/libdevinfo')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud