From 59010135be9da6f90e7b4a3620f379bc170015a3 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 16 Oct 2014 23:14:45 +0200 Subject: [PATCH] src: make root_certs const Make the root_certs global fully const. As a side effect, that moves it from the .data section to the .rodata section. Makes it a little easier to reason about the remaining globals. --- src/node_crypto.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 5c378c4744..90ec7e4f50 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -110,7 +110,7 @@ struct ClearErrorOnReturn { static uv_rwlock_t* locks; -const char* root_certs[] = { +const char* const root_certs[] = { #include "node_root_certs.h" // NOLINT(build/include_order) nullptr };