diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-18 10:09:34 -0400 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2019-03-22 09:19:03 +0100 |
commit | 76387c1c2070cf444a0bd247c86c247c167ec742 (patch) | |
tree | 266be86a65bc4c82c2150eb12f25deee5d5ead6a /src/node_worker.h | |
parent | ee429e4b2ce9da8fdcbd075433cae4a9e1d248f1 (diff) | |
download | android-node-v8-76387c1c2070cf444a0bd247c86c247c167ec742.tar.gz android-node-v8-76387c1c2070cf444a0bd247c86c247c167ec742.tar.bz2 android-node-v8-76387c1c2070cf444a0bd247c86c247c167ec742.zip |
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>
Diffstat (limited to 'src/node_worker.h')
-rw-r--r-- | src/node_worker.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h index 9510faafe6..b23ab704b0 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; |