Skip to content

Commit

Permalink
src: add missing inialization in agent.h
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
mhdawson authored and targos committed Nov 4, 2021
1 parent 36d3b12 commit 143c881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracing/agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down

0 comments on commit 143c881

Please sign in to comment.