From 78e01489ca9829b2cab33d2c081aaf2ced938bf9 Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Thu, 19 Jul 2018 18:15:01 -0400 Subject: [PATCH] src: fix may be uninitialized warning in n-api --- src/node_api.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_api.cc b/src/node_api.cc index ad0796570a4c14..b900cc253c1a7b 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -3849,7 +3849,7 @@ class TsFn: public node::AsyncResource { } void DispatchOne() { - void* data; + void* data = nullptr; bool popped_value = false; bool idle_stop_failed = false;