From 3b009398c9cd4a72f835dfc595cc56905c342267 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 9 Jun 2022 12:21:05 +0200 Subject: [PATCH] Add missing stresslevel field initialization --- src/libespeak-ng/translate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libespeak-ng/translate.c b/src/libespeak-ng/translate.c index 6e1d5cab..f83314a7 100644 --- a/src/libespeak-ng/translate.c +++ b/src/libespeak-ng/translate.c @@ -1574,6 +1574,7 @@ static int TranslateWord2(Translator *tr, char *word, WORD_TAB *wtab, int pre_pa if (ph_code == phonSWITCH) { ph_list2[n_ph_list2].phcode = ph_code; + ph_list2[n_ph_list2].stresslevel = 0; ph_list2[n_ph_list2].sourceix = 0; ph_list2[n_ph_list2].synthflags = 0; ph_list2[n_ph_list2++].tone_ph = *p;