LookupDict2: Check if flags is not null before setting it. [msvc /analyze]

This commit is contained in:
Reece H. Dunn
2018-03-27 12:55:18 +01:00
parent 0d801f0c88
commit 36c29c479a
+1 -1
View File
@@ -2822,7 +2822,7 @@ static const char *LookupDict2(Translator *tr, const char *word, const char *wor
}
ix = utf8_in(&c, word);
if ((word[ix] == 0) && !IsAlpha(c))
if (flags != NULL && (word[ix] == 0) && !IsAlpha(c))
flags[0] |= FLAG_MAX3;
return word_end;