Skip to content

Commit

Permalink
src: make root_certs const
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bnoordhuis committed Nov 3, 2014
1 parent 3a9754a commit 5901013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit 5901013

Please sign in to comment.