mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-09 20:41:27 -04:00
Add an assert to appease clang's static analyzer
It got confused because in EVLOCK_ASSERT_LOCKED(lock) there is an if (lock) check.
This commit is contained in:
parent
5208544edc
commit
b0ff7eb5ce
@ -217,6 +217,7 @@ debug_cond_wait(void *_cond, void *_lock, const struct timeval *tv)
|
|||||||
{
|
{
|
||||||
int r;
|
int r;
|
||||||
struct debug_lock *lock = _lock;
|
struct debug_lock *lock = _lock;
|
||||||
|
EVUTIL_ASSERT(lock);
|
||||||
EVLOCK_ASSERT_LOCKED(_lock);
|
EVLOCK_ASSERT_LOCKED(_lock);
|
||||||
evthread_debug_lock_mark_unlocked(0, lock);
|
evthread_debug_lock_mark_unlocked(0, lock);
|
||||||
r = _original_cond_fns.wait_condition(_cond, lock->lock, tv);
|
r = _original_cond_fns.wait_condition(_cond, lock->lock, tv);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user