chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
calendar: new case 'minutely'
[elogind.git]
/
src
/
shared
/
calendarspec.c
diff --git
a/src/shared/calendarspec.c
b/src/shared/calendarspec.c
index 64d0dec364579da01a1278da2627d2a76f28eeb9..da920b6dd919f51acf0cdfab87dc16ca2de9641e 100644
(file)
--- 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;