From cd74aa020862e01162caa938e7be529701eef727 Mon Sep 17 00:00:00 2001 From: katherine Date: Sat, 21 Dec 2019 21:34:31 -0700 Subject: allow message-less entries --- src/calendar.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src') diff --git a/src/calendar.c b/src/calendar.c index fac3137..bcf06f6 100644 --- a/src/calendar.c +++ b/src/calendar.c @@ -621,10 +621,6 @@ static inline struct entry_s sub_get_entry_on(struct state_s *s) }; time_t rt; int c; - struct pos_s p = { - .line = s->last_line, - .col = s->last_col, - }; rt = sub_get_date(s); if (s->err_flag) @@ -637,9 +633,7 @@ static inline struct entry_s sub_get_entry_on(struct state_s *s) c = getc(s->f); if (c != ',') { - sub_set_pos(s, p); - ERRP("invalid calendar entry"); - s->err_flag = true; + ungetc(c, s->f); return e; } -- cgit v1.2.3