Skip to content

Commit 3f11666

Browse files
committed
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: nodejs#40379 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <nodecorelab@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
1 parent a35b7e0 commit 3f11666

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tracing/agent.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AgentWriterHandle {
7676
inline AgentWriterHandle(Agent* agent, int id) : agent_(agent), id_(id) {}
7777

7878
Agent* agent_ = nullptr;
79-
int id_;
79+
int id_ = 0;
8080

8181
friend class Agent;
8282
};

0 commit comments

Comments
 (0)