From 18422130d4af1a64e1cd346cc3cd9c8dfa339a9f Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Wed, 12 Apr 2017 11:37:34 -0400 Subject: [PATCH] n-api: fix coverity scan report Coverity was reporting _request.work_req as not being initialized. Add memset to ensure all of _request is initialized. --- src/node_api.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/node_api.cc b/src/node_api.cc index f3d717f3e46ab8..4b37361a6257fe 100644 --- a/src/node_api.cc +++ b/src/node_api.cc @@ -2602,6 +2602,7 @@ class Work { _data(data), _execute(execute), _complete(complete) { + memset(&_request, 0, sizeof(_request)); _request.data = this; }