mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
async_hooks: add missing initialization
- Add missing initialization reported by coverity. Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user