From 513fe0728cb621f8edd316874a7e17f8bf03ea96 Mon Sep 17 00:00:00 2001 From: WarmUpTill Date: Sun, 7 Jun 2020 10:43:52 +0200 Subject: [PATCH] initialize SwitcherThread to nullptr --- src/headers/switcher-data-structs.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/headers/switcher-data-structs.hpp b/src/headers/switcher-data-structs.hpp index 97d5f90b..35c2e975 100644 --- a/src/headers/switcher-data-structs.hpp +++ b/src/headers/switcher-data-structs.hpp @@ -257,7 +257,7 @@ class SwitcherThread; * SwitcherData ********************************************************************************/ struct SwitcherData { - SwitcherThread *th; + SwitcherThread *th = nullptr; condition_variable cv; mutex m;