From e3e1845262f9909d6f13585a7f5ef8d920cda6dc Mon Sep 17 00:00:00 2001 From: pajlada Date: Fri, 4 Nov 2022 19:59:03 +0100 Subject: [PATCH] Fix uninitialized read in `ChannelView`'s `highlightedMessage_` (#4109) --- src/widgets/helper/ChannelView.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/helper/ChannelView.hpp b/src/widgets/helper/ChannelView.hpp index 8e5bfa53..c27652f3 100644 --- a/src/widgets/helper/ChannelView.hpp +++ b/src/widgets/helper/ChannelView.hpp @@ -301,7 +301,7 @@ private: QTimer scrollTimer_; // We're only interested in the pointer, not the contents - MessageLayout *highlightedMessage_; + MessageLayout *highlightedMessage_ = nullptr; QVariantAnimation highlightAnimation_; void setupHighlightAnimationColors();