Make sure rhostip is always initialized.

PR:		bin/51508
Submitted by:	Peter Grimshaw <peter@tesseract.demon.co.uk>
This commit is contained in:
Dag-Erling Smørgrav 2003-04-30 00:49:42 +00:00
parent ccd703cfe4
commit 8f3031025b

View File

@ -170,7 +170,7 @@ pam_sm_acct_mgmt(pam_handle_t *pamh, int flags __unused,
time_t warntime;
int retval;
const char *rhost, *tty, *user;
char rhostip[MAXHOSTNAMELEN];
char rhostip[MAXHOSTNAMELEN] = "";
pam_std_option(&options, other_options, argc, argv);