From 5e577a9d73983a9ec1ba6a8224e59fca1c3691f6 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 12 Dec 2014 16:01:57 +1100 Subject: Prevent some static analyzer warnings. --- lexlib/WordList.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lexlib/WordList.cxx') diff --git a/lexlib/WordList.cxx b/lexlib/WordList.cxx index 68b384a95..be7fda505 100644 --- a/lexlib/WordList.cxx +++ b/lexlib/WordList.cxx @@ -69,6 +69,8 @@ static char **ArrayFromWordList(char *wordlist, int *len, bool onlyLineEnds = fa WordList::WordList(bool onlyLineEnds_) : words(0), list(0), len(0), onlyLineEnds(onlyLineEnds_) { + // Prevent warnings by static analyzers about uninitialized starts. + starts[0] = -1; } WordList::~WordList() { -- cgit v1.2.3