From a8782028b9f545219395b0b50dc93d1cb5a8f3f2 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 --- 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; };