mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
node-api: address coverity report
Address missing initialization reported by coverity Signed-off-by: Michael Dawson <midawson@redhat.com> PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
2334d5cda8
commit
e4c1d020dc
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user