From ab66f81a6150b8548984e6dd50caf0d89f8c8a87 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sun, 15 May 2022 08:45:46 +0300 Subject: [PATCH] Utils: Initialize DeviceShell member on ctor It is initialized in start(), which is called in the worker thread. Reported by Coverity. Change-Id: I385b185c220f5be20cc312eb960658c2de770a9c Reviewed-by: hjk Reviewed-by: Marcus Tillmanns --- src/libs/utils/deviceshell.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/utils/deviceshell.h b/src/libs/utils/deviceshell.h index f92e4ba6fd6..b800712a0b6 100644 --- a/src/libs/utils/deviceshell.h +++ b/src/libs/utils/deviceshell.h @@ -74,7 +74,7 @@ private: void closeShellProcess(); private: - QtcProcess *m_shellProcess; + QtcProcess *m_shellProcess = nullptr; QThread m_thread; };