diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-18 10:36:17 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2017-09-18 10:36:17 -0500 |
commit | 0eb47b9af340dd07209a3920944ed085fe7bd359 (patch) | |
tree | fc7c4b8fbbd51a4b033323c020884c204c997566 /src/rc/rc-schedules.c | |
parent | 4ab60ff10935122277bbaed437f82a765279cd19 (diff) |
initialize the stop schedule
Diffstat (limited to 'src/rc/rc-schedules.c')
-rw-r--r-- | src/rc/rc-schedules.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/rc/rc-schedules.c b/src/rc/rc-schedules.c index 164581d6..9568e51d 100644 --- a/src/rc/rc-schedules.c +++ b/src/rc/rc-schedules.c @@ -56,11 +56,6 @@ typedef struct scheduleitem { static TAILQ_HEAD(, scheduleitem) schedule; -void initialize_schedulelist(void) -{ - TAILQ_INIT(&schedule); -} - void free_schedulelist(void) { SCHEDULEITEM *s1 = TAILQ_FIRST(&schedule); @@ -186,6 +181,7 @@ void parse_schedule(const char *applet, const char *string, int timeout) size_t len; SCHEDULEITEM *item; + TAILQ_INIT(&schedule); if (string) for (slash = string; *slash; slash++) if (*slash == '/') |