From ca86b0da33af7c3b90c7b4fe171f259c103cca9c Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Mon, 5 May 2014 18:52:16 -0700 Subject: [PATCH] Actually initialize the initial MatchState in the search replace engine --- src/search_replace_engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search_replace_engine.cpp b/src/search_replace_engine.cpp index 584e66d5c..927b42162 100644 --- a/src/search_replace_engine.cpp +++ b/src/search_replace_engine.cpp @@ -231,7 +231,7 @@ bool SearchReplaceEngine::FindReplace(bool replace) { auto it = context->ass->iterator_to(*line); size_t pos = 0; - MatchState replace_ms; + MatchState replace_ms{nullptr, 0, -1}; if (replace) { if (settings.field == SearchReplaceSettings::Field::TEXT) pos = context->textSelectionController->GetSelectionStart();