diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-01-06 21:21:10 +0100 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-01-09 00:47:35 +0100 |
commit | 8d893f213dfd73f960bbf9999cf973b05baad135 (patch) | |
tree | 1e1c80a9fef4987b6fda3fce9c8727a8526e526d /src/env.h | |
parent | 005363ad372cf6f98572f0d0da3caf9b74448fde (diff) | |
download | android-node-v8-8d893f213dfd73f960bbf9999cf973b05baad135.tar.gz android-node-v8-8d893f213dfd73f960bbf9999cf973b05baad135.tar.bz2 android-node-v8-8d893f213dfd73f960bbf9999cf973b05baad135.zip |
src: initialize `Environment` members in class definition
Initialize primitive members of `Environment` in the class definition
for clarity.
PR-URL: https://github.com/nodejs/node/pull/25369
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Matheus Marchini <mat@mmarchini.me>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Diffstat (limited to 'src/env.h')
-rw-r--r-- | src/env.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -950,11 +950,11 @@ class Environment { ImmediateInfo immediate_info_; TickInfo tick_info_; const uint64_t timer_base_; - bool printed_error_; - bool abort_on_uncaught_exception_; - bool emit_env_nonstring_warning_; - bool emit_err_name_warning_; - size_t makecallback_cntr_; + bool printed_error_ = false; + bool abort_on_uncaught_exception_ = false; + bool emit_env_nonstring_warning_ = true; + bool emit_err_name_warning_ = true; + size_t makecallback_cntr_ = 0; std::vector<double> destroy_async_id_list_; std::shared_ptr<EnvironmentOptions> options_; @@ -1010,7 +1010,7 @@ class Environment { double* heap_statistics_buffer_ = nullptr; double* heap_space_statistics_buffer_ = nullptr; - char* http_parser_buffer_; + char* http_parser_buffer_ = nullptr; bool http_parser_buffer_in_use_ = false; std::unique_ptr<http2::Http2State> http2_state_; |