Skip to content

Commit 38f1ede

Browse files
mhdawsonruyadorno
authored andcommitted
node-api: address coverity warning
- address coverity unitialized variable warning Signed-off-by: Michael Dawson <mdawson@devrus.com> PR-URL: #45563 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent b6b5b51 commit 38f1ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_api.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ void napi_module_register_by_symbol(v8::Local<v8::Object> exports,
633633
// Create a new napi_env for this specific module.
634634
napi_env env = v8impl::NewEnv(context, module_filename);
635635

636-
napi_value _exports;
636+
napi_value _exports = nullptr;
637637
env->CallIntoModule([&](napi_env env) {
638638
_exports = init(env, v8impl::JsValueFromV8LocalValue(exports));
639639
});

0 commit comments

Comments
 (0)