From 96a3902cd7920769c991576869e4fc3d06a16da1 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sun, 12 Oct 2025 00:07:34 +0200 Subject: [PATCH] avoid more const --- lib/openldap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/openldap.c b/lib/openldap.c index 9614c3e667..46af0bfadc 100644 --- a/lib/openldap.c +++ b/lib/openldap.c @@ -461,8 +461,9 @@ static CURLcode oldap_perform_mechs(struct Curl_easy *data) struct ldapconninfo *li = Curl_conn_meta_get(data->conn, CURL_META_LDAP_CONN); int rc; - char *supportedSASLMechanisms[] = { - "supportedSASLMechanisms", + char name[]="supportedSASLMechanisms"; + char *supportedSASLMechanisms[2] = { + name, NULL };