Browse Source

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.
archived-io.js-v0.12
Ben Noordhuis 10 years ago
parent
commit
59010135be
  1. 2
      src/node_crypto.cc

2
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
};

Loading…
Cancel
Save