summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2013-04-14 00:49:29 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2013-04-14 00:56:18 +0200
commitec837150a0910026c60bf51ccf58db2a0e2fb5e0 (patch)
tree8ea4d66e30e525ed804168f77f10eb91630a235d
parent694d28eb78dfad98e2e7ea670d93a153d8efd368 (diff)
downloadcalcurse-ec837150a0910026c60bf51ccf58db2a0e2fb5e0.zip
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 <calcurse@cryptocrack.de>
-rw-r--r--src/recur.c3
1 files changed, 1 insertions, 2 deletions
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;