From d74be13ef04d99772fe3dbf7f2516dc8371ef0e2 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Sat, 11 Apr 2015 12:39:06 +0300 Subject: [PATCH] (file_date): fix variable initialization. Signed-off-by: Andrew Borodin --- lib/timefmt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/timefmt.c b/lib/timefmt.c index b950457df..9da8723b4 100644 --- a/lib/timefmt.c +++ b/lib/timefmt.c @@ -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. */