]> git.sur5r.net Git - openldap/commitdiff
fix build with thread debugging
authorPierangelo Masarati <ando@openldap.org>
Sun, 5 Nov 2006 09:22:53 +0000 (09:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 5 Nov 2006 09:22:53 +0000 (09:22 +0000)
libraries/libldap/cyrus.c

index 52ade28cac059bef59924fdbd1eff9f71dfee2b1..7ffc8007bad425d62f4bd421d2ec200d4522d9be 100644 (file)
@@ -1265,7 +1265,7 @@ void *ldap_pvt_sasl_mutex_new(void)
 {
        ldap_pvt_thread_mutex_t *mutex;
 
-       mutex = (ldap_pvt_thread_mutex_t *) LDAP_MALLOC(
+       mutex = (ldap_pvt_thread_mutex_t *) LDAP_CALLOC( 1,
                sizeof(ldap_pvt_thread_mutex_t) );
 
        if ( ldap_pvt_thread_mutex_init( mutex ) == 0 ) {