From 887e1ddf61e7d9167b35a167cf3b289657a2b2a4 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Thu, 26 Sep 2019 13:44:04 +1000 Subject: [PATCH] initialize msg_type in debug handler --- app/common/debug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/common/debug.cpp b/app/common/debug.cpp index a00555acb..927e0c2ee 100644 --- a/app/common/debug.cpp +++ b/app/common/debug.cpp @@ -5,7 +5,7 @@ void DebugHandler(QtMsgType type, const QMessageLogContext &context, const QStri { QByteArray localMsg = msg.toLocal8Bit(); - const char* msg_type; + const char* msg_type = "UNKNOWN"; switch (type) { case QtDebugMsg: msg_type = "DEBUG";