From ad5ecbf07227a5c7e1423adf7c68c6cfb05bbd1e Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Mon, 24 Jul 2006 15:03:06 +1000 Subject: - (djm) [session.c] fix compile error with -Werror -Wall: 'path' is only used in do_setup_env() if HAVE_LOGIN_CAP is not defined --- session.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'session.c') 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; -- cgit v1.2.1