aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkatherine <ageha@airen-no-jikken.icu>2019-12-21 21:34:31 -0700
committerkatherine <ageha@airen-no-jikken.icu>2019-12-21 21:34:31 -0700
commitcd74aa020862e01162caa938e7be529701eef727 (patch)
treeb78c948b0ed2cc1d1d36684cc70240bec333b4a1
parentabc20333ab9dc27777cac564c9158e357143008c (diff)
downloadevery-cd74aa020862e01162caa938e7be529701eef727.tar.gz
allow message-less entries
-rw-r--r--src/calendar.c8
1 files changed, 1 insertions, 7 deletions
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;
}