summaryrefslogtreecommitdiffstats
path: root/crypto/openssh
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2001-11-19 19:40:14 +0000
committerdwmalone <dwmalone@FreeBSD.org>2001-11-19 19:40:14 +0000
commit9a6b4717f37df4cf4f5b0c6351cb5386264ce09a (patch)
tree852859a5b5390f060c94bd678178150f76ef553d /crypto/openssh
parent4410530efb165fbebbcf481000cc8694bcab5baf (diff)
downloadFreeBSD-src-9a6b4717f37df4cf4f5b0c6351cb5386264ce09a.zip
FreeBSD-src-9a6b4717f37df4cf4f5b0c6351cb5386264ce09a.tar.gz
In the "UseLogin yes" case we need env to be NULL to make sure it
will be correctly initialised. PR: 32065 Tested by: The Anarcat <anarcat@anarcat.dyndns.org> MFC after: 3 days
Diffstat (limited to 'crypto/openssh')
-rw-r--r--crypto/openssh/session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssh/session.c b/crypto/openssh/session.c
index fc8aa65..2a725ea 100644
--- a/crypto/openssh/session.c
+++ b/crypto/openssh/session.c
@@ -1003,7 +1003,7 @@ do_child(Session *s, const char *command)
char cmd[1024];
FILE *f = NULL;
u_int envsize, i;
- char **env;
+ char **env = NULL;
extern char **environ;
struct stat st;
char *argv[10];
OpenPOWER on IntegriCloud