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>

PR-URL: #41288
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
mhdawson committed Dec 25, 2021
1 parent 83f442a commit ffa00fa
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 ffa00fa

Please sign in to comment.