diff options
Diffstat (limited to 'src/node_buffer.cc')
-rw-r--r-- | src/node_buffer.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 1a7f01a734..e3a1515d6a 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -56,14 +56,12 @@ namespace node { -// if true, all Buffer and SlowBuffer instances will automatically zero-fill -bool zero_fill_all_buffers = false; - namespace { inline void* BufferMalloc(size_t length) { - return zero_fill_all_buffers ? node::UncheckedCalloc(length) : - node::UncheckedMalloc(length); + return per_process_opts->zero_fill_all_buffers ? + node::UncheckedCalloc(length) : + node::UncheckedMalloc(length); } } // namespace |