Skip to content

Commit a920489

Browse files
mhdawsonmarco-ippolito
authored andcommittedMay 3, 2024
node-api: address coverity report
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>
1 parent 20bb165 commit a920489

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)
Please sign in to comment.