From ec837150a0910026c60bf51ccf58db2a0e2fb5e0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Sun, 14 Apr 2013 00:49:29 +0200 Subject: recur_exc_scan(): Do not check time of exceptions Exceptions do not contain a time field -- do not check time fields which may be uninitialized. Regression introduced in 9907069f442c56c90b67accb2d8fbd046dfce6db. This fixes test/recur-*.sh. Signed-off-by: Lukas Fleischer --- src/recur.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/recur.c b/src/recur.c index 9ac0363..c5b5f5e 100644 --- a/src/recur.c +++ b/src/recur.c @@ -783,8 +783,7 @@ void recur_exc_scan(llist_t * lexc, FILE * data_file) EXIT(_("syntax error in item date")); } - EXIT_IF(!check_date(day.tm_year, day.tm_mon, day.tm_mday) - || !check_time(day.tm_hour, day.tm_min), + EXIT_IF(!check_date(day.tm_year, day.tm_mon, day.tm_mday), _("date error in item exception")); day.tm_hour = 0; -- cgit v1.2.3-70-g09d2