summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_unix/pam_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c
index 28b9c17..56cdd1a 100644
--- a/lib/libpam/modules/pam_unix/pam_unix.c
+++ b/lib/libpam/modules/pam_unix/pam_unix.c
@@ -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);
OpenPOWER on IntegriCloud