From 23e6fc25e2ed11d09be127dd40f0f05fa4a94f3a Mon Sep 17 00:00:00 2001 From: Herb Lewis Date: Mon, 4 Mar 2002 01:07:02 +0000 Subject: fix for IRIX compile error (This used to be commit 2d620909f9def17dacf2af997a32d596f4dbd827) --- source3/libads/ldap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source3/libads/ldap.c') diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 763f1bc354..ef1902960f 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -359,9 +359,10 @@ ADS_STATUS ads_gen_mod(ADS_STRUCT *ads, const char *mod_dn, ADS_MODLIST mods) "1.2.840.113556.1.4.1413", {0, NULL}, (char) 1}; - LDAPControl *controls[2] = { - &PermitModify, - NULL }; + LDAPControl *controls[2]; + + controls[0] = &PermitModify; + controls[1] = NULL; /* find the end of the list, marked by NULL or -1 */ for(i=0;(mods[i]!=0)&&(mods[i]!=(LDAPMod *) -1);i++); -- cgit