]> git.sur5r.net Git - openldap/commitdiff
pointer initialization
authorJong Hyuk Choi <jongchoi@openldap.org>
Mon, 29 Apr 2002 16:42:41 +0000 (16:42 +0000)
committerJong Hyuk Choi <jongchoi@openldap.org>
Mon, 29 Apr 2002 16:42:41 +0000 (16:42 +0000)
servers/slapd/back-bdb/delete.c
servers/slapd/back-bdb/modify.c
servers/slapd/back-bdb/modrdn.c
servers/slapd/back-bdb/referral.c

index 49056093050b2d00ef31026069f8c5f735e54ace..dcaf399fafd07c9abb777f2abc130bf84a00a992 100644 (file)
@@ -25,7 +25,8 @@ bdb_delete(
        struct bdb_info *bdb = (struct bdb_info *) be->be_private;
        Entry   *matched;
        struct berval   pdn = {0, NULL};
-       Entry   *e, *p = NULL;
+       Entry   *e = NULL;
+       Entry   *p = NULL;
        int     rc;
        const char *text;
        int             manageDSAit = get_manageDSAit( op );
index cb5d9cce3137c63b6898c3e56b4f7b0fc6b396d7..9fece09c88f86b7b916666f4f517ae71bebcb31e 100644 (file)
@@ -241,8 +241,8 @@ bdb_modify(
 {
        struct bdb_info *bdb = (struct bdb_info *) be->be_private;
        int rc;
-       Entry           *matched;
-       Entry           *e;
+       Entry           *matched = NULL;
+       Entry           *e = NULL;
        int             manageDSAit = get_manageDSAit( op );
        const char *text = NULL;
        char textbuf[SLAP_TEXT_BUFLEN];
index 8221b8b0608aa715a151b28e99cacbf02d46251a..cb1e1517ebb81f3f5bc9377d26152d5af4a8dd69 100644 (file)
@@ -31,7 +31,8 @@ bdb_modrdn(
        struct berval   p_dn, p_ndn;
        struct berval   new_dn = {0, NULL}, new_ndn = {0, NULL};
        int             isroot = -1;
-       Entry           *e, *p = NULL;
+       Entry           *e = NULL;
+       Entry           *p = NULL;
        Entry           *matched;
        int                     rc;
        const char *text;
index 7899c89be71f32b2ab7e8afe3b7baeab92abd4fb..3517492c7945b8c24374ec5a254258689bab207d 100644 (file)
@@ -23,7 +23,8 @@ bdb_referrals(
 {
        struct bdb_info *bdb = (struct bdb_info *) be->be_private;
        int rc = LDAP_SUCCESS;
-       Entry *e = NULL, *matched;
+       Entry *e = NULL;
+       Entry *matched = NULL;
 
        if( op->o_tag == LDAP_REQ_SEARCH ) {
                /* let search take care of itself */