summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-03-30 02:09:15 +0200
committerLennart Poettering <lennart@poettering.net>2011-03-30 02:09:15 +0200
commitd885ac661b74bb44691c4ac16822e93cf08e11e9 (patch)
treebd72d8a27e34328eca7fea46c5f7722b71773adb /src
parentcb39ed3fdeb102a921e862a23b90607b5242f94e (diff)
locale: don't access misinitialized variable
Diffstat (limited to 'src')
-rw-r--r--src/locale-setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/locale-setup.c b/src/locale-setup.c
index e146746dfa..39b877cabe 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);