From 53348c5118dd20af0693969d406ee5e2d592e3c4 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 21 Jul 2022 00:25:45 +0200 Subject: [PATCH] Avoid match1.del_fwd getting stale value --- src/libespeak-ng/dictionary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index 79412141..906ff111 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -2227,8 +2227,8 @@ int TranslateRules(Translator *tr, char *p_start, char *phonemes, int ph_size, c char *p; ALPHABET *alphabet; int dict_flags0 = 0; - MatchRecord match1; - MatchRecord match2; + MatchRecord match1 = { 0 }; + MatchRecord match2 = { 0 }; char ph_buf[N_PHONEME_BYTES]; char word_copy[N_WORD_BYTES]; static const char str_pause[2] = { phonPAUSE_NOLINK, 0 };