]> git.sur5r.net Git - openldap/commitdiff
Silence valgrind warnings
authorHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 01:44:42 +0000 (01:44 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 9 Sep 2005 01:44:42 +0000 (01:44 +0000)
servers/slapd/modify.c

index ba5477b7f8f4845d6065d2822633212f59038c21..ca628ef5ff424a93f86a8b243407d6e93f351fc7 100644 (file)
@@ -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 ) );