Skip to content

Commit 67b6e0d

Browse files
mhdawsonrvagg
authored andcommitted
src: fix may be uninitialized warning in n-api
Backport-PR-URL: #25002 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 3675059 commit 67b6e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_api.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3749,7 +3749,7 @@ class TsFn: public node::AsyncResource {
37493749
}
37503750

37513751
void DispatchOne() {
3752-
void* data;
3752+
void* data = nullptr;
37533753
bool popped_value = false;
37543754
bool idle_stop_failed = false;
37553755

0 commit comments

Comments
 (0)