* src/sulogin.c (main): env is only used when USE_PAM is not set.

This commit is contained in:
nekral-guest 2011-10-18 20:28:01 +00:00
parent 704f28df98
commit 2afa955401
2 changed files with 3 additions and 1 deletions

View File

@ -5,6 +5,7 @@
* lib/nscd.c: Remove unused variable.
* lib/prototypes.h, libmisc/cleanup.c, lib/spawn.c, src/chage.c:
Add splint annotations.
* src/sulogin.c (main): env is only used when USE_PAM is not set.
2011-10-15 Nicolas François <nicolas.francois@centraliens.net>

View File

@ -82,7 +82,9 @@ static RETSIGTYPE catch_signals (unused int sig)
/*ARGSUSED*/ int main (int argc, char **argv)
{
#ifndef USE_PAM
const char *env;
#endif /* !USE_PAM */
char **envp = environ;
TERMIO termio;
int err = 0;
@ -164,7 +166,6 @@ static RETSIGTYPE catch_signals (unused int sig)
}
#ifndef USE_PAM
env = getdef_str ("ENV_TZ");
if (NULL != env) {
addenv (('/' == *env) ? tz (env) : env, NULL);