From: Howard Chu Date: Tue, 8 May 2007 14:01:16 +0000 (+0000) Subject: coverity scan, ch_realloc won't return NULL X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~521 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=626e9aabeabcda8288a9b3e6d9e01fcd3360ba36;p=openldap coverity scan, ch_realloc won't return NULL --- diff --git a/servers/slapd/syncrepl.c b/servers/slapd/syncrepl.c index 916fde2039..81eaaddcab 100644 --- a/servers/slapd/syncrepl.c +++ b/servers/slapd/syncrepl.c @@ -203,10 +203,6 @@ init_syncrepl(syncinfo_t *si) attrs = ( char ** ) ch_realloc( attrs, (n + 4)*sizeof( char * ) ); } - if ( attrs == NULL ) { - Debug( LDAP_DEBUG_ANY, "out of memory\n", 0, 0, 0 ); - } - /* Add Attributes */ if ( si->si_allopattrs ) { attrs[n++] = ch_strdup( sync_descs[0]->ad_cname.bv_val );