Replacing exit with return

This commit is contained in:
ed 2020-03-09 18:01:32 +00:00
parent c667083c81
commit 8a2e3d500c

View File

@ -165,7 +165,7 @@ static void print_one (/*@null@*/const struct passwd *pw, bool force)
tm = localtime (&fl.fail_time); tm = localtime (&fl.fail_time);
if (!tm) { if (!tm) {
fprintf (stderr, "Cannot read time from faillog.\n"); fprintf (stderr, "Cannot read time from faillog.\n");
exit (EXIT_FAILURE); return;
} }
#ifdef HAVE_STRFTIME #ifdef HAVE_STRFTIME
strftime (ptime, sizeof (ptime), "%D %H:%M:%S %z", tm); strftime (ptime, sizeof (ptime), "%D %H:%M:%S %z", tm);