aboutsummaryrefslogtreecommitdiffstats
path: root/src/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendar.c')
-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;
}