Browse Source

dictionary: fix stack initialization

master
Yury Popov 1 year ago
parent
commit
e7bcd3cc15
No account linked to committer's email address
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/libespeak-ng/dictionary.c

+ 3
- 0
src/libespeak-ng/dictionary.c View File

@@ -927,6 +927,9 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,

static const char consonant_types[16] = { 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0 };

memset(syllable_weight, 0, sizeof(syllable_weight));
memset(vowel_length, 0, sizeof(vowel_length));

stressflags = tr->langopts.stress_flags;

if (dictionary_flags != NULL)

Loading…
Cancel
Save