Skip to content

Commit 0ca807a

Browse files
committed
Fix clang-21 -Wdefault-const-init-var-unsafe
Fixes up commit 9aa15e7
1 parent fb5515d commit 0ca807a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libmariadb/ma_tls.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ static my_bool ma_pvio_tls_compare_fp(MARIADB_TLS *ctls,
224224
const char *cert_fp,
225225
unsigned int cert_fp_len)
226226
{
227-
const char fp[EVP_MAX_MD_SIZE];
227+
char fp[EVP_MAX_MD_SIZE];
228228
unsigned int fp_len= EVP_MAX_MD_SIZE;
229229
unsigned int hash_type;
230230

@@ -266,11 +266,11 @@ static my_bool ma_pvio_tls_compare_fp(MARIADB_TLS *ctls,
266266
}
267267
}
268268

269-
if (!ma_tls_get_finger_print(ctls, hash_type, (char *)fp, fp_len))
269+
if (!ma_tls_get_finger_print(ctls, hash_type, fp, fp_len))
270270
return 1;
271271

272272
p= (char *)cert_fp;
273-
c = (char *)fp;
273+
c = fp;
274274

275275
for (p = (char*)cert_fp; p < cert_fp + cert_fp_len; c++, p += 2)
276276
{

0 commit comments

Comments
 (0)