src: initialize worker's stack_base_ field

Coverity was complaining that this field was not initialized.

PR-URL: https://github.com/nodejs/node/pull/26739
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
cjihrig authored and Michaël Zasso committed 2019-03-27 22:16:13 +01:00
1 parent 6874288f6e
commit 79d6895484
1 file changed
+1 -1
+1 -1
View File
@@ -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;