Skip to content

Commit 314102b

Browse files
mhdawsontargos
authored andcommitted
async_hooks: add missing initialization
- 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]>
1 parent c12cbf2 commit 314102b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async_wrap.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class AsyncWrap : public BaseObject {
236236
bool init_hook_ran_ = false;
237237
// Because the values may be Reset(), cannot be made const.
238238
double async_id_ = kInvalidAsyncId;
239-
double trigger_async_id_;
239+
double trigger_async_id_ = kInvalidAsyncId;
240240
};
241241

242242
} // namespace node

0 commit comments

Comments
 (0)