]> git.sur5r.net Git - openldap/commitdiff
`err' might be used uninitialized
authorPierangelo Masarati <ando@openldap.org>
Tue, 29 Jun 2004 17:32:43 +0000 (17:32 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 29 Jun 2004 17:32:43 +0000 (17:32 +0000)
servers/slapd/back-bdb/modify.c

index 58555376483fec27410e49f5cdc457d678f19891..ce0195e35d5a01a5bb5879780b36fdc4900a17b1 100644 (file)
@@ -116,8 +116,11 @@ int bdb_modify_internal(
                        break;
 
                case LDAP_MOD_DELETE:
-                       if ( glue_attr_delete )
+                       if ( glue_attr_delete ) {
+                               err = LDAP_SUCCESS;
                                break;
+                       }
+
 #ifdef NEW_LOGGING
                        LDAP_LOG ( OPERATION, DETAIL1, 
                                "bdb_modify_internal: delete\n", 0, 0, 0 );