Made an array static const
This commit is contained in:
parent
e5084c1eca
commit
9aac2328c6
@ -345,7 +345,7 @@ Curl_gtls_connect(struct connectdata *conn,
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
|
||||
if(data->set.ssl.version == CURL_SSLVERSION_SSLv3) {
|
||||
int protocol_priority[] = { GNUTLS_SSL3, 0 };
|
||||
static const int protocol_priority[] = { GNUTLS_SSL3, 0 };
|
||||
gnutls_protocol_set_priority(session, protocol_priority);
|
||||
if(rc < 0)
|
||||
return CURLE_SSL_CONNECT_ERROR;
|
||||
|
Loading…
x
Reference in New Issue
Block a user