From 79d68954843a84d3a85c19f662a1c19fac0572b8 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Mon, 18 Mar 2019 10:09:34 -0400 Subject: [PATCH] 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 Reviewed-By: Yongsheng Zhang Reviewed-By: James M Snell --- src/node_worker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_worker.h b/src/node_worker.h index adc755426d03c8..43b92ed40ed8bb 100644 --- a/src/node_worker.h +++ b/src/node_worker.h @@ -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;