diff options
Diffstat (limited to 'src/basic/calendarspec.c')
-rw-r--r-- | src/basic/calendarspec.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/basic/calendarspec.c b/src/basic/calendarspec.c index 359bb16cae..db11e55390 100644 --- a/src/basic/calendarspec.c +++ b/src/basic/calendarspec.c @@ -699,14 +699,9 @@ static int parse_calendar_time(const char **p, CalendarSpec *c) { t = *p; - if (*t == 0) { - /* If no time is specified at all, but a date of some - * kind, then this means 00:00:00 */ - if (c->day || c->weekdays_bits > 0) - goto null_hour; - - goto finish; - } + /* If no time is specified at all, then this means 00:00:00 */ + if (*t == 0) + goto null_hour; r = parse_chain(&t, false, &h); if (r < 0) |