diff --git a/lib/libpam/modules/pam_unix/pam_unix.c b/lib/libpam/modules/pam_unix/pam_unix.c index 28b9c17e10ea..56cdd1a9f4b9 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);