From 0eb47b9af340dd07209a3920944ed085fe7bd359 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Mon, 18 Sep 2017 10:36:17 -0500 Subject: initialize the stop schedule --- src/rc/rc-schedules.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/rc/rc-schedules.c') 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 == '/') -- cgit v1.2.3