]> git.sur5r.net Git - openldap/commitdiff
fix initialization size and silence warning
authorPierangelo Masarati <ando@openldap.org>
Thu, 5 Dec 2002 11:47:44 +0000 (11:47 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 5 Dec 2002 11:47:44 +0000 (11:47 +0000)
servers/slapd/acl.c
servers/slapd/slap.h

index 23447f89fd71038a58c6febf97ea10b72acc39be..1dd93af57f7b65f507102ad4f0445b992855e414 100644 (file)
@@ -121,7 +121,7 @@ access_allowed(
 {
        int                             ret = 1;
        int                             count;
-       AccessControl   *a;
+       AccessControl                   *a = NULL;
 
 #ifdef LDAP_DEBUG
        char accessmaskbuf[ACCESSMASK_MAXLEN];
index 4aae99a7f0264d565cc5a1b6f178c2493fb814e7..1e611159c10a3b830e35b02fb73a4136945d8694 100644 (file)
@@ -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