From d93f2f362ce9bbc8a3651b82c709ade3e790a829 Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 19 Jul 2019 21:50:15 +0000 Subject: [PATCH] Core: CoWork: Workaround for sanitizer bug git-svn-id: svn://ultimatepp.org/upp/trunk@13502 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Core/CoWork.cpp | 2 +- uppsrc/Core/CoWork.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/Core/CoWork.cpp b/uppsrc/Core/CoWork.cpp index 46e49dc15..1c3ceb3fd 100644 --- a/uppsrc/Core/CoWork.cpp +++ b/uppsrc/Core/CoWork.cpp @@ -113,7 +113,7 @@ void CoWork::Pool::DoJob(MJob& job) } lock.Leave(); - std::exception_ptr exc; + std::exception_ptr exc = nullptr; try { if(looper) work->looper_fn(); diff --git a/uppsrc/Core/CoWork.h b/uppsrc/Core/CoWork.h index b858ca261..454406168 100644 --- a/uppsrc/Core/CoWork.h +++ b/uppsrc/Core/CoWork.h @@ -57,7 +57,7 @@ public: Link jobs; // global stack and CoWork stack as double-linked lists int todo; bool canceled; - std::exception_ptr exc; + std::exception_ptr exc = nullptr; // workaround for sanitizer bug(?) Function looper_fn; int looper_count;