From 52f0e2db9417af76eedf133f4435bc926bf659b1 Mon Sep 17 00:00:00 2001 From: Ivan Sorokin Date: Wed, 13 Feb 2019 21:57:47 +0300 Subject: [PATCH] fix: fix uninitialized variable undefined behavior sanitizer complained about uninitialized variable: src/widget/form/chatform.cpp:781:9: runtime error: load of value 190, which is not a valid value for type 'bool' --- src/widget/form/genericchatform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget/form/genericchatform.cpp b/src/widget/form/genericchatform.cpp index bc2616d61..d75aecdb0 100644 --- a/src/widget/form/genericchatform.cpp +++ b/src/widget/form/genericchatform.cpp @@ -133,6 +133,7 @@ GenericChatForm::GenericChatForm(const Contact* contact, QWidget* parent) : QWidget(parent, Qt::Window) , audioInputFlag(false) , audioOutputFlag(false) + , searchAfterLoadHistory(false) { curRow = 0; headWidget = new ChatFormHeader();