mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-01 21:58:52 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user