locale: don't access misinitialized variable

This commit is contained in:
Lennart Poettering 2011-03-30 02:09:15 +02:00
parent cb39ed3fde
commit d885ac661b

View File

@ -65,7 +65,7 @@ static const char * const variable_names[_VARIABLE_MAX] = {
int locale_setup(void) { int locale_setup(void) {
char *variables[_VARIABLE_MAX]; char *variables[_VARIABLE_MAX];
int r, i; int r = 0, i;
zero(variables); zero(variables);