]> git.sur5r.net Git - openldap/commitdiff
coverity scan, ch_realloc won't return NULL
authorHoward Chu <hyc@openldap.org>
Tue, 8 May 2007 14:01:16 +0000 (14:01 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 8 May 2007 14:01:16 +0000 (14:01 +0000)
servers/slapd/syncrepl.c

index 916fde2039b2fe7eac7c6138537a7fcf7656397c..81eaaddcab11b4060cf35800dd9289a6c93c7584 100644 (file)
@@ -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 );