From a2a3c6f0a7037c012839c5b24523b9f9e3f6f195 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arsen=20Arsenovi=C4=87?= Date: Tue, 24 Aug 2021 00:16:34 +0200 Subject: [PATCH] fix maybe-uninitialized warning in parse_trigrams --- parse_trigrams.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse_trigrams.h b/parse_trigrams.h index 9c8cdf2..c845cde 100644 --- a/parse_trigrams.h +++ b/parse_trigrams.h @@ -11,7 +11,7 @@ // One or more trigrams, with an implicit OR between them. For case-sensitive searches, // this is just e.g. “abc”, but for case-insensitive, it would be “abc OR abC or aBc ...” etc. struct TrigramDisjunction { - unsigned index; // For debugging only. + unsigned index = -1; // For debugging only. // The alternatives as determined by parse_trigrams(). std::vector trigram_alternatives; -- 2.39.2