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 <[email protected]>

PR-URL: #41288
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Matteo Collina <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Minwoo Jung <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
  • Loading branch information
mhdawson authored and targos committed Jan 14, 2022
1 parent c12cbf2 commit 314102b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/async_wrap.h
Original file line number Diff line number Diff line change
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 314102b

Please sign in to comment.