Skip to content

Commit 143c881

Browse files
mhdawsontargos
authored andcommitted
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 <[email protected]> PR-URL: #40379 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 36d3b12 commit 143c881

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)