From: Howard Chu Date: Fri, 9 Sep 2005 01:44:42 +0000 (+0000) Subject: Silence valgrind warnings X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~456 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d4c3093996079a2882a94421492d63aa5cd4834a;p=openldap Silence valgrind warnings --- diff --git a/servers/slapd/modify.c b/servers/slapd/modify.c index ba5477b7f8..ca628ef5ff 100644 --- a/servers/slapd/modify.c +++ b/servers/slapd/modify.c @@ -885,6 +885,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_structuralObjectClass; mod->sml_values = @@ -920,6 +921,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_entryUUID; mod->sml_values = @@ -952,6 +954,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_creatorsName; mod->sml_values = @@ -981,6 +984,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_createTimestamp; mod->sml_values = @@ -999,6 +1003,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_entryCSN; mod->sml_values = (BerVarray) ch_malloc( 2 * sizeof( struct berval ) ); @@ -1022,6 +1027,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_modifiersName; mod->sml_values = (BerVarray) ch_malloc( 2 * sizeof( struct berval ) ); @@ -1050,6 +1056,7 @@ int slap_mods_opattrs( mod = (Modifications *) ch_malloc( sizeof( Modifications ) ); mod->sml_op = mop; mod->sml_flags = SLAP_MOD_INTERNAL; + mod->sml_next = NULL; BER_BVZERO( &mod->sml_type ); mod->sml_desc = slap_schema.si_ad_modifyTimestamp; mod->sml_values = (BerVarray) ch_malloc( 2 * sizeof( struct berval ) );