Fix uninitialized struct berval* to avoid assert in dnNormalize

This commit is contained in:
Howard Chu 2001-12-24 20:12:30 +00:00
parent b735ca3237
commit a61b777cdc
3 changed files with 6 additions and 6 deletions

View file

@ -373,7 +373,7 @@ add_values(
int rc;
int j;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,
@ -448,7 +448,7 @@ delete_values(
int rc;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,

View file

@ -374,7 +374,7 @@ add_values(
int rc;
int j;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,
@ -460,7 +460,7 @@ delete_values(
int rc;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,

View file

@ -337,7 +337,7 @@ add_values( Entry *e, Modification *mod, int *newlevel )
int rc;
int j;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,
@ -418,7 +418,7 @@ delete_values( Entry *e, Modification *mod, int *newlevel )
int rc;
const char *text = NULL;
struct berval *asserted;
struct berval *asserted = NULL;
rc = value_normalize( mod->sm_desc,
SLAP_MR_EQUALITY,