From 8e74ed4dfc79b82ec881192d9c7d4e69271cc64f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Thu, 5 Dec 2002 11:47:44 +0000 Subject: [PATCH] fix initialization size and silence warning --- servers/slapd/acl.c | 2 +- servers/slapd/slap.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/acl.c b/servers/slapd/acl.c index 23447f89fd..1dd93af57f 100644 --- a/servers/slapd/acl.c +++ b/servers/slapd/acl.c @@ -121,7 +121,7 @@ access_allowed( { int ret = 1; int count; - AccessControl *a; + AccessControl *a = NULL; #ifdef LDAP_DEBUG char accessmaskbuf[ACCESSMASK_MAXLEN]; diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 4aae99a7f0..1e611159c1 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1114,7 +1114,7 @@ typedef struct slap_acl_state { int as_result; AttributeDescription *as_vd_ad; } AccessControlState; -#define ACL_STATE_INIT { ACL_STATE_NOT_RECORDED, NULL, NULL, 0UL, { { 0, 0 } }, 0, NULL, 0, 0, 0, NULL } +#define ACL_STATE_INIT { ACL_STATE_NOT_RECORDED, NULL, NULL, 0UL, { { 0, 0 } }, 0, NULL, 0, 0, NULL } /* * replog moddn param structure -- 2.39.5