From: Lennart Poettering Date: Wed, 30 Mar 2011 00:09:15 +0000 (+0200) Subject: locale: don't access misinitialized variable X-Git-Tag: v21~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d885ac661b74bb44691c4ac16822e93cf08e11e9;p=systemd locale: don't access misinitialized variable --- diff --git a/src/locale-setup.c b/src/locale-setup.c index e146746d..39b877ca 100644 --- a/src/locale-setup.c +++ b/src/locale-setup.c @@ -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);