From a61b777cdce8cdcbbd20ac75eee58d8d3291010c Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 24 Dec 2001 20:12:30 +0000 Subject: [PATCH] Fix uninitialized struct berval* to avoid assert in dnNormalize --- servers/slapd/back-bdb/modify.c | 4 ++-- servers/slapd/back-ldbm/modify.c | 4 ++-- servers/slapd/back-monitor/log.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/servers/slapd/back-bdb/modify.c b/servers/slapd/back-bdb/modify.c index 87271e8b06..e4695f968d 100644 --- a/servers/slapd/back-bdb/modify.c +++ b/servers/slapd/back-bdb/modify.c @@ -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, diff --git a/servers/slapd/back-ldbm/modify.c b/servers/slapd/back-ldbm/modify.c index 080f2f6659..7f2bbc7675 100644 --- a/servers/slapd/back-ldbm/modify.c +++ b/servers/slapd/back-ldbm/modify.c @@ -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, diff --git a/servers/slapd/back-monitor/log.c b/servers/slapd/back-monitor/log.c index f1e6835392..8528da8ca9 100644 --- a/servers/slapd/back-monitor/log.c +++ b/servers/slapd/back-monitor/log.c @@ -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, -- 2.39.5