src: add missing inialization in agent.h

This missing initialization was reported by the coverity scans
we are in the process of re-enabling.

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/40379
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Michael Dawson authored and Michaël Zasso committed 2021-10-20 16:53:41 +02:00
1 parent b84f101049
commit f9f2442739
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ class AgentWriterHandle {
inline AgentWriterHandle(Agent* agent, int id) : agent_(agent), id_(id) {}
Agent* agent_ = nullptr;
int id_;
int id_ = 0;
friend class Agent;
};