1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Initialize lcap and pwd to NULL. This allows a WARNS=6 clean build,

hence bump it to 6.

Note that the last commit message was not quite accurate.  While the
assumption exists in the code, it's not possible to have an
uninitialized p there because if lflag is set when username is NULL
then execution would be terminated earlier.
This commit is contained in:
Xin LI 2004-11-17 10:01:48 +00:00
parent 95751846f1
commit d1df3fcd3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137808
2 changed files with 3 additions and 3 deletions

View File

@ -5,6 +5,6 @@ MAN= jail.8
DPADD= ${LIBUTIL}
LDADD= -lutil
WARNS?= 2
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -49,9 +49,9 @@ extern char **environ;
int
main(int argc, char **argv)
{
login_cap_t *lcap;
login_cap_t *lcap = NULL;
struct jail j;
struct passwd *pwd;
struct passwd *pwd = NULL;
struct in_addr in;
gid_t groups[NGROUPS];
int ch, i, iflag, lflag, ngroups, uflag, Uflag;