summaryrefslogtreecommitdiff
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-07-24 15:03:06 +1000
committerDamien Miller <djm@mindrot.org>2006-07-24 15:03:06 +1000
commitad5ecbf07227a5c7e1423adf7c68c6cfb05bbd1e (patch)
treeffdc09488726fab9910b5f53c9248e1f33d2fba1 /session.c
parent874bc4883206d253640cb1a9704c5a1161093bcb (diff)
downloadopenssh-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/session.c b/session.c
index c2730a42..0c20d9e8 100644
--- a/session.c
+++ b/session.c
@@ -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;