fix for IRIX compile error
authorHerb Lewis <herb@samba.org>
Mon, 4 Mar 2002 01:07:02 +0000 (01:07 +0000)
committerHerb Lewis <herb@samba.org>
Mon, 4 Mar 2002 01:07:02 +0000 (01:07 +0000)
(This used to be commit 2d620909f9def17dacf2af997a32d596f4dbd827)

source3/libads/ldap.c

index 763f1bc354e41f9372fc5879d6c7622149639da8..ef1902960f8f3f23c57b15982b1e74657d985d03 100644 (file)
@@ -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++);