calendar: new case 'minutely'

This commit is contained in:
Daniele Medri
2014-10-27 13:42:02 +01:00
committed by Lennart Poettering
parent 2d1239ea20
commit 272ac20517
+6 -1
View File
@@ -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;