Skip to content

Commit

Permalink
async_hooks: add missing initialization
Browse files Browse the repository at this point in the history
- Add missing initialization reported by coverity.

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Dec 22, 2021
1 parent 34e3dd5 commit 0a651ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_wrap.h
Expand Up @@ -236,7 +236,7 @@ class AsyncWrap : public BaseObject {
bool init_hook_ran_ = false;
// Because the values may be Reset(), cannot be made const.
double async_id_ = kInvalidAsyncId;
double trigger_async_id_;
double trigger_async_id_ = kInvalidAsyncId;
};

} // namespace node
Expand Down

0 comments on commit 0a651ca

Please sign in to comment.