diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2011-04-10 14:03:39 +0200 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2011-04-23 02:04:58 +0200 |
commit | b0ff7eb5ce55679cf6b47088078563bf37fef1c9 (patch) | |
tree | db64a8a5d6d6b031269ddc58f54667ee794cb281 /evthread.c | |
parent | 5208544edc9d17f9902429f837d277125d3d3ca4 (diff) | |
download | libevent-b0ff7eb5ce55679cf6b47088078563bf37fef1c9.tar.gz |
Add an assert to appease clang's static analyzer
It got confused because in EVLOCK_ASSERT_LOCKED(lock) there is an if
(lock) check.
Diffstat (limited to 'evthread.c')
-rw-r--r-- | evthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -217,6 +217,7 @@ debug_cond_wait(void *_cond, void *_lock, const struct timeval *tv) { int r; struct debug_lock *lock = _lock; + EVUTIL_ASSERT(lock); EVLOCK_ASSERT_LOCKED(_lock); evthread_debug_lock_mark_unlocked(0, lock); r = _original_cond_fns.wait_condition(_cond, lock->lock, tv); |