From df7e9a23e1f75c4a762e3658b790e99cb1688872 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 14 Sep 2017 07:57:50 +0100 Subject: [PATCH] Ensure that flags in the syllables are initialised. Clang static analysis reports this as 'Assigned value is garbage or undefined'. --- src/libespeak-ng/intonation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libespeak-ng/intonation.c b/src/libespeak-ng/intonation.c index 946e89f3..7c61faaf 100644 --- a/src/libespeak-ng/intonation.c +++ b/src/libespeak-ng/intonation.c @@ -949,8 +949,8 @@ void CalcPitches(Translator *tr, int clause_type) n_primary = 0; for (ix = 0; ix < (n_phoneme_list-1); ix++) { p = &phoneme_list[ix]; + syllable_tab[ix].flags = 0; if (p->synthflags & SFLAG_SYLLABLE) { - syllable_tab[n_st].flags = 0; syllable_tab[n_st].env = PITCHfall; syllable_tab[n_st].nextph_type = phoneme_list[ix+1].type; syllable_tab[n_st++].stress = p->stresslevel;