From 0c3804bf6558d87ff5fc9d54cf8da178455d475c Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 17 Nov 2004 09:52:10 +0000 Subject: The code path in main() dealing with lflag assumes that p was initialized with NULL, while it is not. So let's initialize it. --- usr.sbin/jail/jail.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin/jail/jail.c') 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; -- cgit v1.1