Skip to content

Commit 79d6895

Browse files
cjihrigtargos
authored andcommitted
src: initialize worker's stack_base_ field
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>
1 parent 6874288 commit 79d6895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_worker.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class Worker : public AsyncWrap {
7070
bool thread_joined_ = true;
7171
int exit_code_ = 0;
7272
uint64_t thread_id_ = -1;
73-
uintptr_t stack_base_;
73+
uintptr_t stack_base_ = 0;
7474

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

0 commit comments

Comments
 (0)