diff options
author | jhb <jhb@FreeBSD.org> | 2003-03-04 20:30:30 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2003-03-04 20:30:30 +0000 |
commit | 3b2bb7e47b9eeacda34542c9c0135f7cff2bbeab (patch) | |
tree | bfadcba251e0434b249b1568c7be8a0e8f454a12 /lib/libc/stdlib/strtoumax.c | |
parent | 1ccbcbaf68651bd65369b9652ccc30689893ec82 (diff) | |
download | FreeBSD-src-3b2bb7e47b9eeacda34542c9c0135f7cff2bbeab.zip FreeBSD-src-3b2bb7e47b9eeacda34542c9c0135f7cff2bbeab.tar.gz |
Properly assert that mtx_trylock() is not called on a mutex we already
owned. Previously the KASSERT would only trigger if we successfully
acquired a lock that we already held. However, _obtain_lock() fails to
acquire locks that we already hold, so the KASSERT was never checked in
the case it was supposed to fail.
Diffstat (limited to 'lib/libc/stdlib/strtoumax.c')
0 files changed, 0 insertions, 0 deletions