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

lib/base/exception.cpp

index 5a13d2ea954eec0cdd57fc1bc3b436a680bf0388..c34ab587b7648c2c25d798e9cb7a29f3b5da4113 100644 (file)
@@ -205,7 +205,7 @@ String icinga::DiagnosticInformation(boost::exception_ptr eptr, bool verbose)
 }
 
 ScriptError::ScriptError(const String& message)
-       : m_Message(message)
+       : m_Message(message), m_IncompleteExpr(false)
 { }
 
 ScriptError::ScriptError(const String& message, const DebugInfo& di, bool incompleteExpr)