From: Arsen Arsenović Date: Mon, 23 Aug 2021 22:16:34 +0000 (+0200) Subject: fix maybe-uninitialized warning in parse_trigrams X-Git-Tag: 1.1.12~5 X-Git-Url: https://git.sesse.net/?p=plocate;a=commitdiff_plain;h=a2a3c6f0a7037c012839c5b24523b9f9e3f6f195 fix maybe-uninitialized warning in parse_trigrams --- 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;