diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2001-11-19 19:40:14 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2001-11-19 19:40:14 +0000 |
commit | 9a6b4717f37df4cf4f5b0c6351cb5386264ce09a (patch) | |
tree | 852859a5b5390f060c94bd678178150f76ef553d | |
parent | 4410530efb165fbebbcf481000cc8694bcab5baf (diff) | |
download | FreeBSD-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
-rw-r--r-- | crypto/openssh/session.c | 2 |
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]; |