diff options
author | Benoit Jacob <benoitjacob@google.com> | 2022-04-12 20:47:14 +0300 |
---|---|---|
committer | Benoit Jacob <benoitjacob@google.com> | 2022-04-12 20:47:14 +0300 |
commit | ce1f6d0526e146bef6b29e21ade60b54c27aa57d (patch) | |
tree | 522ec9b7064864c3d4e2d134f63de67c62af8e81 /capture | |
parent | 331f39e6a51324703ebe19247fe9d76b27ea43e8 (diff) |
explicitly initialize as false - hope the compiler optimizes that
Diffstat (limited to 'capture')
-rw-r--r-- | capture/src/capture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index a0c83973..04ae243c 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -31,7 +31,7 @@ // technically not allowed there, even though in practice it would work. // The good thing with C++11 atomics is that we can use atomic<bool> instead // here and be on the actually supported path. -static std::atomic<bool> s_disconnect; +static std::atomic<bool> s_disconnect { false }; void SigInt( int ) { |