From: Kurt Zeilenga Date: Wed, 2 Jan 2002 17:00:21 +0000 (+0000) Subject: use malloc not calloc X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~362 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da6928b4377717757de72cbd995f1075fac7901c;p=openldap use malloc not calloc --- diff --git a/servers/slapd/back-monitor/backmon.dsp b/servers/slapd/back-monitor/backmon.dsp index e403851d6f..0c4b76e2b1 100644 --- a/servers/slapd/back-monitor/backmon.dsp +++ b/servers/slapd/back-monitor/backmon.dsp @@ -127,10 +127,6 @@ LIB32=link.exe -lib # Name "backmon - Win32 Single Release" # Begin Source File -SOURCE=.\abandon.c -# End Source File -# Begin Source File - SOURCE=".\back-monitor.h" # End Source File # Begin Source File diff --git a/servers/slapd/back-monitor/init.c b/servers/slapd/back-monitor/init.c index 1f4e848fc2..9a36b0630e 100644 --- a/servers/slapd/back-monitor/init.c +++ b/servers/slapd/back-monitor/init.c @@ -306,7 +306,7 @@ monitor_back_db_init( } dn.bv_len += sizeof( SLAPD_MONITOR_DN ); /* 1 for the , */ - dn.bv_val = ch_calloc( sizeof( char ), dn.bv_len + 1 ); + dn.bv_val = ch_malloc( dn.bv_len + 1 ); strcpy( dn.bv_val , monitor_subsys[ i ].mss_rdn->bv_val ); strcat( dn.bv_val, "," SLAPD_MONITOR_DN ); rc = dnPrettyNormal( NULL, &dn, &monitor_subsys[ i ].mss_dn,