pointer initialization

This commit is contained in:
Jong Hyuk Choi 2002-04-29 16:42:41 +00:00
parent d3058532c9
commit 5291b41336
4 changed files with 8 additions and 5 deletions

View 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 );

View 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];

View 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;

View 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 */