Skip to content

Commit f393304

Browse files
bnoordhuisaddaleax
authored andcommittedJul 18, 2017
n-api: fix -Wmaybe-uninitialized compiler warning
Not an actual bug, as far as I can tell, the compiler is simply not smart enough to figure out that the offending code path isn't reached with an uninitialized value. PR-URL: #14053 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent de744ba commit f393304

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
@@ -2323,7 +2323,7 @@ napi_status napi_instanceof(napi_env env,
23232323
}
23242324

23252325
if (env->has_instance_available) {
2326-
napi_value value, js_result, has_instance = nullptr;
2326+
napi_value value, js_result = nullptr, has_instance = nullptr;
23272327
napi_status status = napi_generic_failure;
23282328
napi_valuetype value_type;
23292329

0 commit comments

Comments
 (0)
Please sign in to comment.