diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-12 15:14:27 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-12 15:14:27 +0200 |
commit | d299649b0c458730e7c7068a2c97574039cd26fe (patch) | |
tree | b41d4f1ef6ec1d8c918edaf66c6d2ed6ab2f7cb2 | |
parent | 4805ef9cceb6d558e718d13f4d7ef4b5c0b16a67 (diff) | |
download | mblaze-d299649b0c458730e7c7068a2c97574039cd26fe.tar.gz mblaze-d299649b0c458730e7c7068a2c97574039cd26fe.tar.xz mblaze-d299649b0c458730e7c7068a2c97574039cd26fe.zip |
scan: show invalid dates
-rw-r--r-- | scan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scan.c b/scan.c index 5685455..f0be7c9 100644 --- a/scan.c +++ b/scan.c @@ -72,9 +72,11 @@ oneline(char *file) struct tm *tm; tm = localtime(&t); strftime(date, sizeof date, "%Y-%m-%d", tm); + } else { + strcpy(date, "(invalid)"); } } else { - strcpy(date, "(invalid)"); + strcpy(date, "(unknown)"); // mtime perhaps? } |