]> err.no Git - systemd/commitdiff
locale: don't access misinitialized variable
authorLennart Poettering <lennart@poettering.net>
Wed, 30 Mar 2011 00:09:15 +0000 (02:09 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 30 Mar 2011 00:09:15 +0000 (02:09 +0200)
src/locale-setup.c

index e146746dfa82814b9af1b207918c08ebdcb36a8d..39b877cabeea3e78fcaea48330ec851404f6b8e0 100644 (file)
@@ -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);