From: Luke Howard Date: Sun, 2 Feb 2003 09:04:43 +0000 (+0000) Subject: Ensure AttributeDescriptions are initialized to NULL X-Git-Tag: NO_SLAP_OP_BLOCKS~452 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=307f7fcc89e9d0423d321c44e7b72a5dd0fb8763;p=openldap Ensure AttributeDescriptions are initialized to NULL --- diff --git a/servers/slapd/slapi/slapi_utils.c b/servers/slapd/slapi/slapi_utils.c index e0f017ccac..c52e2bf2a9 100644 --- a/servers/slapd/slapi/slapi_utils.c +++ b/servers/slapd/slapi/slapi_utils.c @@ -427,7 +427,7 @@ slapi_entry_attr_hasvalue( Slapi_Entry *e, const char *type, const char *value ) { #ifdef LDAP_SLAPI struct berval bv; - AttributeDescription *ad; + AttributeDescription *ad = NULL; const char *text; int rc; Attribute *attr; @@ -777,7 +777,7 @@ int slapi_entry_attr_replace_sv( Slapi_Entry *e, const char *type, Slapi_Value **vals ) { #ifdef LDAP_SLAPI - AttributeDescription *ad; + AttributeDescription *ad = NULL; const char *text; int rc; BerVarray bv; @@ -3202,7 +3202,7 @@ int slapi_x_compute_output_ber(computed_attr_context *c, Slapi_Attr *a, Slapi_En Connection *conn = NULL; Operation *op = NULL; BerElement *ber; - AttributeDescription *desc; + AttributeDescription *desc = NULL; int rc; int i;