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 <midawson@redhat.com>
PR-URL: #52584
Reviewed-By: Vladimir Morozov <vmorozov@microsoft.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Gabriel Schulhof <gabrielschulhof@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
mhdawson authored and aduh95 committed Apr 29, 2024
1 parent d5cd468 commit b17cfea
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 b17cfea

Please sign in to comment.