Permalink
Browse files

refactor(main): remove unnecessary use of variable

  • Loading branch information...
mycoboco committed Jan 24, 2018
1 parent ad23f9c commit 85f3247a7d75d81179c273b92890407eae2e164b
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/main.c
@@ -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;
}
}

0 comments on commit 85f3247

Please sign in to comment.