From 0a9c0bba3cda48d4e34c66e42fb70b4e6a8d140a Mon Sep 17 00:00:00 2001 From: "Parzych, Hubert" Date: Thu, 5 Oct 2023 09:11:24 +0200 Subject: [PATCH] refactor: explicitly initialize running bool in Discovery --- libebpfdiscovery/headers/ebpfdiscovery/Discovery.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libebpfdiscovery/headers/ebpfdiscovery/Discovery.h b/libebpfdiscovery/headers/ebpfdiscovery/Discovery.h index 736a44bf..c4e44180 100644 --- a/libebpfdiscovery/headers/ebpfdiscovery/Discovery.h +++ b/libebpfdiscovery/headers/ebpfdiscovery/Discovery.h @@ -65,7 +65,7 @@ class Discovery { DiscoveryBpf discoveryBpf; SavedSessionsCacheType savedSessions; - std::atomic running; + std::atomic running{false}; bool stopReceived{false}; std::condition_variable stopReceivedCV; std::mutex stopReceivedMutex;