From 2ebffd8e220b0f92a0a288a717d122018767a6b4 Mon Sep 17 00:00:00 2001 From: Matthew Dawson Date: Tue, 29 Dec 2015 22:47:43 -0500 Subject: Ensure KonfUpdate's fields are all initialized. These fields should all be written to before they are read during normal operation, but this ensures they have a sensible default in case they are not. Coverity issue 1291513. --- src/kconf_update/kconf_update.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/kconf_update/kconf_update.cpp b/src/kconf_update/kconf_update.cpp index 5108fb2e..2acd720d 100644 --- a/src/kconf_update/kconf_update.cpp +++ b/src/kconf_update/kconf_update.cpp @@ -106,7 +106,8 @@ protected: KonfUpdate::KonfUpdate(QCommandLineParser *parser) : m_oldConfig1(Q_NULLPTR), m_oldConfig2(Q_NULLPTR), m_newConfig(Q_NULLPTR), - m_textStream(Q_NULLPTR), m_file(Q_NULLPTR) + m_bCopy(false), m_bOverwrite(false), m_textStream(Q_NULLPTR), + m_file(Q_NULLPTR), m_lineCount(-1) { bool updateAll = false; -- cgit v1.2.1