dtlogin: Resolve some coverity issues, including those thought previously fixed

This commit is contained in:
Peter Howkins
2018-04-28 23:47:05 +01:00
parent 399c1e08c3
commit e14e74231c
5 changed files with 15 additions and 11 deletions

View File

@@ -383,7 +383,7 @@ userEnv(
langlist = languageList;
#endif /* ENABLE_DYNAMIC_LANGLIST */
if (d->language && strlen(d->language) > 0)
if (env && d->language && strlen(d->language) > 0)
env = setLang(d, env, langlist);
#if 0 /* setting LC_ALL can cause undesirable side effects -- bf@hp */