mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-10-31 13:38:47 +00:00
Initialise ending in RemoveEnding.
Clang static analysis reports this as several 'Result of operation is garbage or undefined' errors, when `ending` has not been set due to no matching endings.
This commit is contained in:
@@ -3003,7 +3003,7 @@ int RemoveEnding(Translator *tr, char *word, int end_type, char *word_copy)
|
||||
int end_flags;
|
||||
const char *p;
|
||||
int len;
|
||||
char ending[50];
|
||||
char ending[50] = {0};
|
||||
|
||||
// these lists are language specific, but are only relevent if the 'e' suffix flag is used
|
||||
static const char *add_e_exceptions[] = {
|
||||
|
||||
Reference in New Issue
Block a user