From f7b5f42865336806852ba6cda6b0b86af86ee9ce Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Thu, 18 Apr 2024 21:11:38 +0000 Subject: [PATCH] node-api: address coverity report Address missing initialization reported by coverity Signed-off-by: Michael Dawson --- 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();