diff options
author | Damien Miller <djm@mindrot.org> | 2006-07-24 15:03:06 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2006-07-24 15:03:06 +1000 |
commit | ad5ecbf07227a5c7e1423adf7c68c6cfb05bbd1e (patch) | |
tree | ffdc09488726fab9910b5f53c9248e1f33d2fba1 /session.c | |
parent | 874bc4883206d253640cb1a9704c5a1161093bcb (diff) | |
download | openssh-git-ad5ecbf07227a5c7e1423adf7c68c6cfb05bbd1e.tar.gz |
- (djm) [session.c]
fix compile error with -Werror -Wall: 'path' is only used in
do_setup_env() if HAVE_LOGIN_CAP is not defined
Diffstat (limited to 'session.c')
-rw-r--r-- | session.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -995,8 +995,11 @@ do_setup_env(Session *s, const char *shell) { char buf[256]; u_int i, envsize; - char **env, *laddr, *path = NULL; + char **env, *laddr; struct passwd *pw = s->pw; +#ifndef HAVE_LOGIN_CAP + char *path = NULL; +#endif /* Initialize the environment. */ envsize = 100; |