From: Jong Hyuk Choi Date: Mon, 29 Apr 2002 16:42:41 +0000 (+0000) Subject: pointer initialization X-Git-Tag: OPENLDAP_REL_ENG_2_MP~143 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5291b413365c48bc23bbf5ed793367ffe5550435;p=openldap pointer initialization --- diff --git a/servers/slapd/back-bdb/delete.c b/servers/slapd/back-bdb/delete.c index 4905609305..dcaf399faf 100644 --- a/servers/slapd/back-bdb/delete.c +++ b/servers/slapd/back-bdb/delete.c @@ -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 ); diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index cb5d9cce31..9fece09c88 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -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]; diff --git a/servers/slapd/back-bdb/modrdn.c b/servers/slapd/back-bdb/modrdn.c index 8221b8b060..cb1e1517eb 100644 --- a/servers/slapd/back-bdb/modrdn.c +++ b/servers/slapd/back-bdb/modrdn.c @@ -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; diff --git a/servers/slapd/back-bdb/referral.c b/servers/slapd/back-bdb/referral.c index 7899c89be7..3517492c79 100644 --- a/servers/slapd/back-bdb/referral.c +++ b/servers/slapd/back-bdb/referral.c @@ -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 */