X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Fmods.c;h=20721784ce0b0a75537c936e45b2abd5c7be14f2;hb=17f95a3fd30247a0735a3526d85b46178304748d;hp=9af70141e2215fcadd1f535cd5763aac1d9783a2;hpb=614e7d565d92bd20b22e162f286b14edcf924489;p=openldap diff --git a/servers/slapd/mods.c b/servers/slapd/mods.c index 9af70141e2..20721784ce 100644 --- a/servers/slapd/mods.c +++ b/servers/slapd/mods.c @@ -1,5 +1,5 @@ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ /* @@ -29,7 +29,7 @@ modify_check_duplicates( { int i, j, numvals = 0, nummods, rc = LDAP_SUCCESS; - BerVarray nvals = NULL, nmods; + BerVarray nvals = NULL, nmods = NULL; /* * FIXME: better do the following @@ -109,7 +109,7 @@ modify_check_duplicates( * then to other already normalized values */ nmods = SLAP_CALLOC( nummods + 1, sizeof( struct berval ) ); - if( nmods == NULL ) { + if ( nmods == NULL ) { #ifdef NEW_LOGGING LDAP_LOG( OPERATION, ERR, "modify_check_duplicates: SLAP_CALLOC failed", 0, 0, 0 ); @@ -117,7 +117,7 @@ modify_check_duplicates( Debug( LDAP_DEBUG_ANY, "modify_check_duplicates: SLAP_CALLOC failed", 0, 0, 0 ); #endif - goto return_results; + goto return_results; } for ( i = 0; mods[ i ].bv_val != NULL; i++ ) {