Browse Source

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

master
Reece H. Dunn 7 years ago
parent
commit
36c29c479a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/libespeak-ng/dictionary.c

+ 1
- 1
src/libespeak-ng/dictionary.c 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;


Loading…
Cancel
Save