don't use uninitialized mutexes

This commit is contained in:
Pierangelo Masarati 2006-03-31 23:07:48 +00:00
parent 2f366c3a52
commit 7cba7d0b39
2 changed files with 2 additions and 1 deletions

View File

@ -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;

View File

@ -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;
}