Commit 8780d48d authored by Lennart Poettering's avatar Lennart Poettering
Browse files

locale: unset locale vars that are not set any longer

parent 97e3d13f
......@@ -166,15 +166,15 @@ int locale_setup(void) {
for (i = 0; i < _VARIABLE_MAX; i++) {
if (!variables[i])
continue;
if (setenv(variable_names[i], variables[i], 1) < 0) {
r = -errno;
goto finish;
}
if (variables[i]) {
if (setenv(variable_names[i], variables[i], 1) < 0) {
r = -errno;
goto finish;
}
} else
unsetenv(variable_names[i]);
}
r = 0;
finish:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment