Purpose of commit: cleanup
Commit summary:
---------------
Apply cleanup from Dmitry V. Levin
return;
}
}
- else
- {
- msgbuf1 = strdup (_PAM_SYSTEM_LOG_PREFIX);
- if (msgbuf1 == NULL)
- {
- vsyslog (LOG_AUTHPRIV|priority, fmt, args);
- return;
- }
- }
if (vasprintf (&msgbuf2, fmt, args) < 0)
{
}
errno = save_errno;
- syslog (LOG_AUTHPRIV|priority, "%s %s", msgbuf1, msgbuf2);
+ syslog (LOG_AUTHPRIV|priority, "%s %s",
+ (msgbuf1 ? msgbuf1 : _PAM_SYSTEM_LOG_PREFIX), msgbuf2);
_pam_drop (msgbuf1);
_pam_drop (msgbuf2);