From 5070ca2111dd5b3f333a942059ef2c592de8dc24 Mon Sep 17 00:00:00 2001 From: Loic Blot Date: Wed, 4 Apr 2018 08:40:21 +0200 Subject: Fix 5 issues reported by PVS studio * src/sky.cpp 146 warn V519 The 'suncolor_f.r' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 142, 146. * src/sky.cpp 147 warn V519 The 'suncolor_f.g' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 143, 147. * src/sky.cpp 148 warn V519 The 'suncolor_f.b' variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 144, 148. * src/threading/thread.cpp 63 err V730 Not all members of a class are initialized inside the constructor. Consider inspecting: m_thread_obj. * src/server.cpp 3243 err V595 The 'log' pointer was utilized before it was verified against nullptr. Check lines: 3243, 3258. --- src/threading/thread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/threading') diff --git a/src/threading/thread.h b/src/threading/thread.h index dab5d0ec7..cea92226f 100644 --- a/src/threading/thread.h +++ b/src/threading/thread.h @@ -152,7 +152,7 @@ private: std::mutex m_mutex; std::mutex m_start_finished_mutex; - std::thread *m_thread_obj; + std::thread *m_thread_obj = nullptr; #ifdef _AIX -- cgit v1.2.3