Skip to content

Commit e0336b2

Browse files
mhdawsontargos
authored andcommitted
src: fix may be uninitialized warning in n-api
PR-URL: #21898 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 2f3a28d commit e0336b2

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
@@ -3849,7 +3849,7 @@ class TsFn: public node::AsyncResource {
38493849
}
38503850

38513851
void DispatchOne() {
3852-
void* data;
3852+
void* data = nullptr;
38533853
bool popped_value = false;
38543854
bool idle_stop_failed = false;
38553855

0 commit comments

Comments
 (0)