diff options
author | delphij <delphij@FreeBSD.org> | 2004-11-17 09:52:10 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2004-11-17 09:52:10 +0000 |
commit | 0c3804bf6558d87ff5fc9d54cf8da178455d475c (patch) | |
tree | 94efc791fac6d7123169a48a0edc404c9df0ddec | |
parent | d6a49a1565bec352a92f40326206665b53769de2 (diff) | |
download | FreeBSD-src-0c3804bf6558d87ff5fc9d54cf8da178455d475c.zip FreeBSD-src-0c3804bf6558d87ff5fc9d54cf8da178455d475c.tar.gz |
The code path in main() dealing with lflag assumes that p was
initialized with NULL, while it is not. So let's initialize
it.
-rw-r--r-- | usr.sbin/jail/jail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/jail/jail.c b/usr.sbin/jail/jail.c index e467eb2..e0fac1c 100644 --- a/usr.sbin/jail/jail.c +++ b/usr.sbin/jail/jail.c @@ -57,7 +57,7 @@ main(int argc, char **argv) int ch, i, iflag, lflag, ngroups, uflag, Uflag; char path[PATH_MAX], *username; static char *cleanenv; - const char *shell, *p; + const char *shell, *p = NULL; iflag = lflag = uflag = Uflag = 0; username = cleanenv = NULL; |