diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/calendarspec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/shared/calendarspec.c b/src/shared/calendarspec.c index 64d0dec364..da920b6dd9 100644 --- a/src/shared/calendarspec.c +++ b/src/shared/calendarspec.c @@ -655,7 +655,12 @@ int calendar_spec_from_string(const char *p, CalendarSpec **spec) { if (!c) return -ENOMEM; - if (strcaseeq(p, "hourly")) { + if (strcaseeq(p, "minutely")) { + r = const_chain(0, &c->second); + if (r < 0) + goto fail; + + } else if (strcaseeq(p, "hourly")) { r = const_chain(0, &c->minute); if (r < 0) goto fail; |