From 7c991a8d6c71722da3a4fab4447149d04a9349e4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 13 Oct 2025 12:46:45 +0200 Subject: [PATCH] fixup make it C89 friendly --- lib/openldap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/openldap.c b/lib/openldap.c index 46af0bfadc..9716694551 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -462,10 +462,8 @@ static CURLcode oldap_perform_mechs(struct Curl_easy *data) Curl_conn_meta_get(data->conn, CURL_META_LDAP_CONN); int rc; char name[]="supportedSASLMechanisms"; - char *supportedSASLMechanisms[2] = { - name, - NULL - }; + char *supportedSASLMechanisms[2] = { NULL, NULL }; + supportedSASLMechanisms[0] = name; if(!li) return CURLE_FAILED_INIT;