Skip to content

Commit

Permalink
refactor: explicitly initialize running bool in Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
hparzych committed Oct 5, 2023
1 parent d7300aa commit 0a9c0bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libebpfdiscovery/headers/ebpfdiscovery/Discovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Discovery {
DiscoveryBpf discoveryBpf;
SavedSessionsCacheType savedSessions;

std::atomic<bool> running;
std::atomic<bool> running{false};
bool stopReceived{false};
std::condition_variable stopReceivedCV;
std::mutex stopReceivedMutex;
Expand Down

0 comments on commit 0a9c0bb

Please sign in to comment.