Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
refactor(main): remove unnecessary use of variable
  • Loading branch information
mycoboco committed Jan 24, 2018
1 parent ad23f9c commit 85f3247
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/main.c
Expand Up @@ -1059,17 +1059,16 @@ static void preenv(void)
{
#ifdef HAVE_ICONV
int i;
const char *p;
const char *env[] = {
"LC_ALL",
"LC_CTYPE",
"LANG"
};

for (i = 0; i < NELEM(env); i++) {
p = encparse(getenv(env[i]));
if (p) {
main_opt.icset = main_opt.ecset = p;
main_opt.icset = encparse(getenv(env[i]));
if (main_opt.icset) {
main_opt.ecset = main_opt.icset;
break;
}
}
Expand Down

0 comments on commit 85f3247

Please sign in to comment.