]> granicus.if.org Git - icinga2/commitdiff
Fix uninitialized field in the LivestatusQuery class
authorGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 09:00:09 +0000 (10:00 +0100)
committerGunnar Beutner <gunnar@beutner.name>
Mon, 2 Mar 2015 09:14:15 +0000 (10:14 +0100)
Coverity Bug ID: 1272325

lib/livestatus/livestatusquery.cpp

index 8e62227111143e04fc459fee5fdf17d822420a5c..de912780011b4d152ce9eae0675729e2f889fd14 100644 (file)
@@ -84,7 +84,7 @@ static void InitScriptFrameCleanup(void)
 INITIALIZE_ONCE(InitScriptFrameCleanup);
 
 LivestatusQuery::LivestatusQuery(const std::vector<String>& lines, const String& compat_log_path)
-       : m_KeepAlive(false), m_OutputFormat("csv"), m_ColumnHeaders(true),
+       : m_KeepAlive(false), m_OutputFormat("csv"), m_ColumnHeaders(true), m_ErrorCode(0),
          m_LogTimeFrom(0), m_LogTimeUntil(static_cast<long>(Utility::GetTime()))
 {
        if (lines.size() == 0) {