Skip to content

Commit f788a47

Browse files
mhdawsondanielleadams
authored andcommitted
async_hooks: add missing initialization
- 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>
1 parent b6a0afc commit f788a47

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)