mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-06 06:59:54 -05:00
don't use uninitialized mutexes
This commit is contained in:
parent
2f366c3a52
commit
7cba7d0b39
2 changed files with 2 additions and 1 deletions
|
|
@ -89,7 +89,6 @@ monitor_cache_add(
|
|||
assert( e != NULL );
|
||||
|
||||
mp = ( monitor_entry_t *)e->e_private;
|
||||
ldap_pvt_thread_mutex_init( &mp->mp_mutex );
|
||||
|
||||
mc = ( monitor_cache_t * )ch_malloc( sizeof( monitor_cache_t ) );
|
||||
mc->mc_ndn = e->e_nname;
|
||||
|
|
|
|||
|
|
@ -163,6 +163,8 @@ monitor_entrypriv_create( void )
|
|||
mp->mp_flags = MONITOR_F_NONE;
|
||||
mp->mp_cb = NULL;
|
||||
|
||||
ldap_pvt_thread_mutex_init( &mp->mp_mutex );
|
||||
|
||||
return mp;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue