From: Pierangelo Masarati Date: Thu, 5 Dec 2002 11:47:44 +0000 (+0000) Subject: fix initialization size and silence warning X-Git-Tag: NO_SLAP_OP_BLOCKS~718 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8e74ed4dfc79b82ec881192d9c7d4e69271cc64f;p=openldap fix initialization size and silence warning --- 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