fix initialization size and silence warning

This commit is contained in:
Pierangelo Masarati 2002-12-05 11:47:44 +00:00
parent 01660fbdd9
commit 8e74ed4dfc
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@ access_allowed(
{
int ret = 1;
int count;
AccessControl *a;
AccessControl *a = NULL;
#ifdef LDAP_DEBUG
char accessmaskbuf[ACCESSMASK_MAXLEN];

View 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