From f7f49da17ca1352bd86b903d7bac448c3c5174e3 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 16 Jul 2014 15:52:33 +0200 Subject: Initialize linked list for recurrent items When switching to the generic linked list implementation for recurring events in 9fab248 (Use generic lists for recurring apointments and events., 2011-04-16), no initialization routine for the list of recurring events was added. Fix this and properly initialize the list on startup. Signed-off-by: Lukas Fleischer --- src/recur.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/recur.c') diff --git a/src/recur.c b/src/recur.c index 801346d..69706b0 100644 --- a/src/recur.c +++ b/src/recur.c @@ -140,6 +140,11 @@ void recur_apoint_llist_init(void) LLIST_TS_INIT(&recur_alist_p); } +void recur_event_llist_init(void) +{ + LLIST_INIT(&recur_elist); +} + void recur_apoint_free(struct recur_apoint *rapt) { mem_free(rapt->mesg); -- cgit v1.2.3-54-g00ecf