From 075ef7b63212f7d67c188d8685099235d6f316ab Mon Sep 17 00:00:00 2001 From: shueja-personal Date: Tue, 14 Nov 2023 14:23:19 -0800 Subject: [PATCH] init flag to 0 --- src/optimization/Cancellation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optimization/Cancellation.cpp b/src/optimization/Cancellation.cpp index 11b63170..dc65700e 100644 --- a/src/optimization/Cancellation.cpp +++ b/src/optimization/Cancellation.cpp @@ -2,7 +2,7 @@ #include "optimization/Cancellation.h" namespace trajopt { std::atomic& GetCancellationFlag() { - static std::atomic flag; + static std::atomic flag(0); return flag; } } \ No newline at end of file