From 314102b14df2d220a2d2ffb926116149e74faf90 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Sat, 25 Dec 2021 16:12:56 -0500 Subject: [PATCH] async_hooks: add missing initialization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add missing initialization reported by coverity. Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/41288 Reviewed-By: Tobias Nießen Reviewed-By: Matteo Collina Reviewed-By: Luigi Pinca Reviewed-By: Minwoo Jung Reviewed-By: James M Snell Reviewed-By: Gerhard Stöbich --- src/async_wrap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/async_wrap.h b/src/async_wrap.h index 10d02c15da8f27..f7ed25f9eea318 100644 --- a/src/async_wrap.h +++ b/src/async_wrap.h @@ -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