summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Lockyer <gary@catalyst.net.nz>2020-06-22 13:42:56 +1200
committerKarolin Seeger <kseeger@samba.org>2020-06-24 09:57:26 +0000
commitf50cb3a0fbf403a8c40329a446d15648a04a3c79 (patch)
treed41a0ba9f034e6964bd06dc4cfb1f78c11e2613a
parent7b1bac7d084815cf8b0f070b16a5c93af78f2153 (diff)
downloadsamba-f50cb3a0fbf403a8c40329a446d15648a04a3c79.tar.gz
libcli ldap tests: remove use of zero length array
libcli/ldap/tests/ldap_message_test.c defines a zero length array (uint8_t buf[0]), which is a GCC extension and breaks the build with some strict compilers like xlc. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14387 Signed-off-by: Gary Lockyer <gary@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Tue Jun 23 02:15:35 UTC 2020 on sn-devel-184 (cherry picked from commit d701bc1518766f36b1c7a3a00a82485098a8ee3d)
-rw-r--r--libcli/ldap/tests/ldap_message_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcli/ldap/tests/ldap_message_test.c b/libcli/ldap/tests/ldap_message_test.c
index c5aacd4bc6b..f4b49bc47bc 100644
--- a/libcli/ldap/tests/ldap_message_test.c
+++ b/libcli/ldap/tests/ldap_message_test.c
@@ -115,7 +115,7 @@ static void test_empty_input(void **state)
struct asn1_data *asn1;
struct ldap_message *ldap_msg;
NTSTATUS status;
- uint8_t buf[0];
+ uint8_t *buf = NULL;
size_t len = 0;
struct ldap_request_limits limits = {
.max_search_size = 256000,