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 marco-ippolito committed May 3, 2024
1 parent 20bb165 commit a920489
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 a920489

Please sign in to comment.