Use wflags to access wtab->flags in LookupDict2.

Clang static analysis reports a 'Dereference of null pointer'
error when accessing wtab->flags. This is properly guarded
against when setting the wflags variable, so use that variable
instead.
This commit is contained in:
Reece H. Dunn
2017-09-12 07:36:54 +01:00
parent e6ea8fabea
commit 8a777385a8
+1 -1
View File
@@ -2719,7 +2719,7 @@ static const char *LookupDict2(Translator *tr, const char *word, const char *wor
continue;
}
if ((dictionary_flags2 & FLAG_ATSTART) && !(wtab->flags & FLAG_FIRST_WORD)) {
if ((dictionary_flags2 & FLAG_ATSTART) && !(wflags & FLAG_FIRST_WORD)) {
// only use this pronunciation if it's the first word of a clause
continue;
}