Skip to content

Commit 0a651ca

Browse files
committed
async_hooks: add missing initialization
- Add missing initialization reported by coverity. Signed-off-by: Michael Dawson <[email protected]>
1 parent 34e3dd5 commit 0a651ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async_wrap.h

Lines changed: 1 addition & 1 deletion
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)