]> granicus.if.org Git - curl/commitdiff
Made an array static const
authorDan Fandrich <dan@coneharvesters.com>
Tue, 18 Nov 2008 09:11:34 +0000 (09:11 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Tue, 18 Nov 2008 09:11:34 +0000 (09:11 +0000)
lib/gtls.c

index 1e054d16f60273e1282df3193c8eb891eacaa1f6..53a7400a878110dbbb0d9617e7bbe19d3eb5a8b0 100644 (file)
@@ -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;