diff options
Diffstat (limited to 'src/event.c')
-rw-r--r-- | src/event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event.c b/src/event.c index b1186a3..637dd6d 100644 --- a/src/event.c +++ b/src/event.c @@ -125,6 +125,10 @@ struct event *event_scan(FILE * f, struct tm start, int id, char *note) char buf[BUFSIZ], *nl; time_t tstart; + EXIT_IF(!check_date(start.tm_year, start.tm_mon, start.tm_mday) || + !check_time(start.tm_hour, start.tm_min), + _("date error in event")); + /* Read the event description */ if (!fgets(buf, sizeof buf, f)) return NULL; |