From e4c1d020dc2932cdc7a44040f4180346f0cbc3fc Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 26 Apr 2024 10:36:02 -0400 Subject: [PATCH] node-api: address coverity report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Address missing initialization reported by coverity Signed-off-by: Michael Dawson PR-URL: https://github.com/nodejs/node/pull/52584 Reviewed-By: Vladimir Morozov Reviewed-By: Chengzhong Wu Reviewed-By: Gabriel Schulhof Reviewed-By: Gerhard Stöbich --- src/js_native_api_v8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js_native_api_v8.cc b/src/js_native_api_v8.cc index 2a5bb8f5bc5ae2..44270df350c174 100644 --- a/src/js_native_api_v8.cc +++ b/src/js_native_api_v8.cc @@ -833,7 +833,7 @@ void Reference::WeakCallback(const v8::WeakCallbackInfo& data) { */ class ExternalWrapper { private: - explicit ExternalWrapper(void* data) : data_(data) {} + explicit ExternalWrapper(void* data) : data_(data), type_tag_{0, 0} {} static void WeakCallback(const v8::WeakCallbackInfo& data) { ExternalWrapper* wrapper = data.GetParameter();