From f9f24427399b42ee7be3dca6fc3e11ba9e699edd Mon Sep 17 00:00:00 2001 From: Michael Dawson Date: Fri, 8 Oct 2021 17:48:18 -0400 Subject: [PATCH] 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 PR-URL: https://github.com/nodejs/node/pull/40379 Reviewed-By: James M Snell Reviewed-By: Minwoo Jung Reviewed-By: Darshan Sen --- src/tracing/agent.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tracing/agent.h b/src/tracing/agent.h index 7ee1b417c6ffa0..b542a849fe8da7 100644 --- a/src/tracing/agent.h +++ b/src/tracing/agent.h @@ -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; };