Skip to content

Commit

Permalink
src: initialize worker's stack_base_ field
Browse files Browse the repository at this point in the history
Coverity was complaining that this field was not initialized.

PR-URL: #26739
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
cjihrig authored and targos committed Mar 27, 2019
1 parent 6874288 commit 79d6895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_worker.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class Worker : public AsyncWrap {
bool thread_joined_ = true;
int exit_code_ = 0;
uint64_t thread_id_ = -1;
uintptr_t stack_base_;
uintptr_t stack_base_ = 0;

// Full size of the thread's stack.
static constexpr size_t kStackSize = 4 * 1024 * 1024;
Expand Down

0 comments on commit 79d6895

Please sign in to comment.