From e0336b28912287be183ab900febf80d884082a75 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 PR-URL: https://github.com/nodejs/node/pull/21898 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat Reviewed-By: Jon Moss Reviewed-By: Luigi Pinca --- 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 c0ea0a02048166..40ebc02798b4fe 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;