mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(file_date): fix variable initialization.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
e9e6868789
commit
d74be13ef0
@ -120,7 +120,7 @@ const char *
|
||||
file_date (time_t when)
|
||||
{
|
||||
static char timebuf[MB_LEN_MAX * MAX_I18NTIMELENGTH + 1];
|
||||
time_t current_time = time ((time_t) 0);
|
||||
time_t current_time = time (NULL);
|
||||
const char *fmt;
|
||||
|
||||
if (current_time > when + 6L * 30L * 24L * 60L * 60L /* Old. */
|
||||
|
Loading…
Reference in New Issue
Block a user