Skip to content

Commit

Permalink
node-api: address coverity report
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mhdawson authored and marco-ippolito committed May 2, 2024
1 parent 04b993e commit d260ebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js_native_api_v8.cc
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ void Reference::WeakCallback(const v8::WeakCallbackInfo<Reference>& 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<ExternalWrapper>& data) {
ExternalWrapper* wrapper = data.GetParameter();
Expand Down

0 comments on commit d260ebf

Please sign in to comment.