r12878: Don't use non-static array initialisers.
authorJames Peach <jpeach@samba.org>
Fri, 13 Jan 2006 00:07:54 +0000 (00:07 +0000)
committerJames Peach <jpeach@samba.org>
Fri, 13 Jan 2006 00:07:54 +0000 (00:07 +0000)
source/libads/ldap.c

index 8c8401dff9c6d8ef8980751cd493b2c2c6d4f9ca..dc93bd556c7705174e29e11d6bc7f7f9b78cdd96 100644 (file)
@@ -1800,8 +1800,9 @@ ADS_STATUS ads_leave_realm(ADS_STRUCT *ads, const char *hostname)
        char *hostnameDN, *host; 
        int rc;
        LDAPControl ldap_control;
-       LDAPControl  * pldap_control[] = {&ldap_control, 0};
+       LDAPControl  * pldap_control[2] = {NULL, NULL};
 
+       pldap_control[0] = &ldap_control;
        memset(&ldap_control, 0, sizeof(LDAPControl));
        ldap_control.ldctl_oid = (char *)LDAP_SERVER_TREE_DELETE_OID;