From 848b772226cef10f9a1e50a24f4d8c0d08b58c1b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Marchal?= Date: Sat, 18 Sep 2010 12:37:29 +0000 Subject: [PATCH] Report an error if the requested date range is invalid. Previous versions would silently ignore the date range and take whatever was in the log. --- util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/util.c b/util.c index 6c6439c..de65878 100644 --- a/util.c +++ b/util.c @@ -1271,6 +1271,9 @@ void date_from(char *date, int *dfrom, int *duntil) y1=Date0->tm_year+1900; m1=Date0->tm_mon+1; d1=Date0->tm_mday; + } else { + debuga(_("Invalid date range passed on command line\n")); + exit(EXIT_FAILURE); } } -- 2.47.3