Skip to content

Commit

Permalink
doc: address coverity warning
Browse files Browse the repository at this point in the history
- address coverity unitialized variable warning

Signed-off-by: Michael Dawson <mdawson@devrus.com>
  • Loading branch information
mhdawson committed Nov 21, 2022
1 parent 367ac71 commit ba5c9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ void napi_module_register_by_symbol(v8::Local<v8::Object> exports,
// Create a new napi_env for this specific module.
napi_env env = v8impl::NewEnv(context, module_filename);

napi_value _exports;
napi_value _exports = nullptr;
env->CallIntoModule([&](napi_env env) {
_exports = init(env, v8impl::JsValueFromV8LocalValue(exports));
});
Expand Down

0 comments on commit ba5c9de

Please sign in to comment.