tools/liblockdep: Fix initialization code path
This makes initialization actually happen. Without it, initialization is always skipped due to an incorrect conditional statement. Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
This commit is contained in:
parent
38dbfb59d1
commit
367d896daf
@ -418,7 +418,7 @@ int pthread_rwlock_unlock(pthread_rwlock_t *rwlock)
|
||||
|
||||
__attribute__((constructor)) static void init_preload(void)
|
||||
{
|
||||
if (__init_state != done)
|
||||
if (__init_state == done)
|
||||
return;
|
||||
|
||||
#ifndef __GLIBC__
|
||||
|
Loading…
Reference in New Issue
Block a user