From 6b9eeaa1339a6007fd4c0401d4a7c6cc878ebae6 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Fri, 8 Jan 2016 20:08:55 +0000 Subject: [PATCH] Remove if for identical branches in translate.c. [coverity] --- src/libespeak-ng/translate.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/libespeak-ng/translate.c b/src/libespeak-ng/translate.c index 7231b573..dbdd9a19 100644 --- a/src/libespeak-ng/translate.c +++ b/src/libespeak-ng/translate.c @@ -1323,10 +1323,7 @@ int TranslateWord(Translator *tr, char *word_start, WORD_TAB *wtab, char *word_o SetWordStress(tr, word_phonemes, dictionary_flags, -1, 0); } } else { - if (prefix_phonemes[0] == 0) - SetWordStress(tr, phonemes, dictionary_flags, -1, add_suffix_phonemes); - else - SetWordStress(tr, phonemes, dictionary_flags, -1, add_suffix_phonemes); + SetWordStress(tr, phonemes, dictionary_flags, -1, add_suffix_phonemes); #ifdef PLATFORM_WINDOWS sprintf(word_phonemes, "%s%s%s", unpron_phonemes, prefix_phonemes, phonemes); #else