mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-25 21:25:59 +07:00
locale: don't access misinitialized variable
This commit is contained in:
parent
cb39ed3fde
commit
d885ac661b
@ -65,7 +65,7 @@ static const char * const variable_names[_VARIABLE_MAX] = {
|
||||
|
||||
int locale_setup(void) {
|
||||
char *variables[_VARIABLE_MAX];
|
||||
int r, i;
|
||||
int r = 0, i;
|
||||
|
||||
zero(variables);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user