fixup make it C89 friendly

This commit is contained in:
Daniel Stenberg 2025-10-13 12:46:45 +02:00
parent 96a3902cd7
commit 7c991a8d6c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -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;