Skip to content

Commit b17cfea

Browse files
mhdawsonaduh95
authored andcommitted
node-api: address coverity report
Address missing initialization reported by coverity Signed-off-by: Michael Dawson <[email protected]> PR-URL: #52584 Reviewed-By: Vladimir Morozov <[email protected]> Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Gabriel Schulhof <[email protected]> Reviewed-By: Gerhard Stöbich <[email protected]>
1 parent d5cd468 commit b17cfea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js_native_api_v8.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ void Reference::WeakCallback(const v8::WeakCallbackInfo<Reference>& data) {
833833
*/
834834
class ExternalWrapper {
835835
private:
836-
explicit ExternalWrapper(void* data) : data_(data) {}
836+
explicit ExternalWrapper(void* data) : data_(data), type_tag_{0, 0} {}
837837

838838
static void WeakCallback(const v8::WeakCallbackInfo<ExternalWrapper>& data) {
839839
ExternalWrapper* wrapper = data.GetParameter();

0 commit comments

Comments
 (0)