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:
Reece H. Dunn
2017-09-12 07:29:07 +01:00
parent 988db184ea
commit e6ea8fabea
+1 -1
View File
@@ -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[] = {