summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/modify.c
diff options
context:
space:
mode:
authorNathan Kinder <nkinder@redhat.com>2006-05-05 18:45:09 +0000
committerNathan Kinder <nkinder@redhat.com>2006-05-05 18:45:09 +0000
commit3dcdb8df3e8678409453782c2c6ce3f9785e204b (patch)
tree51991c4c90f6c8800631ebbe90986ae104e84266 /ldap/servers/slapd/modify.c
parentcb9a341ae3189d8473bd7548cc159d1a3c4e56aa (diff)
downloadds-3dcdb8df3e8678409453782c2c6ce3f9785e204b.tar.gz
ds-3dcdb8df3e8678409453782c2c6ce3f9785e204b.tar.xz
ds-3dcdb8df3e8678409453782c2c6ce3f9785e204b.zip
190724 - Array initialization needed to be changed to fix a HP-UX PA compilation error
Diffstat (limited to 'ldap/servers/slapd/modify.c')
-rw-r--r--ldap/servers/slapd/modify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ldap/servers/slapd/modify.c b/ldap/servers/slapd/modify.c
index 828eb191..f6e135c8 100644
--- a/ldap/servers/slapd/modify.c
+++ b/ldap/servers/slapd/modify.c
@@ -907,7 +907,9 @@ static int op_shared_allow_pw_change (Slapi_PBlock *pb, LDAPMod *mod, char **old
{
/* slapi_acl_check_mods needs an array of LDAPMods, but
* we're really only interested in the one password mod. */
- LDAPMod *mods[2] = { mod, NULL };
+ LDAPMod *mods[2];
+ mods[0] = mod;
+ mods[1] = NULL;
/* Create a bogus entry with just the target dn. This will
* only be used for checking the ACIs. */