diff options
author | James Peach <jpeach@samba.org> | 2006-01-13 00:07:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:06:05 -0500 |
commit | 92092cbcdcdb01448ef4e6acd9af88dd93c6c288 (patch) | |
tree | 8b883fa12c0023aacb95440d80c4b110345e152f /source3 | |
parent | 33174847994128387a36a8103f147fe5a96c15fd (diff) | |
download | samba-92092cbcdcdb01448ef4e6acd9af88dd93c6c288.tar.gz samba-92092cbcdcdb01448ef4e6acd9af88dd93c6c288.tar.bz2 samba-92092cbcdcdb01448ef4e6acd9af88dd93c6c288.zip |
r12878: Don't use non-static array initialisers.
(This used to be commit 95b231f0285c65bcdc62cd453cea634f9f5e7f91)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libads/ldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 8c8401dff9..dc93bd556c 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -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; |