summaryrefslogtreecommitdiff
path: root/src/recur.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-16 15:52:33 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-16 15:52:33 +0200
commitf7f49da17ca1352bd86b903d7bac448c3c5174e3 (patch)
tree95c67a77be82272010ae4a584da61be86ac425b4 /src/recur.c
parentbd784775aaa3c64c18c544b7aa6b6fffc6c01e8d (diff)
downloadcalcurse-f7f49da17ca1352bd86b903d7bac448c3c5174e3.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src/recur.c')
-rw-r--r--src/recur.c5
1 files changed, 5 insertions, 0 deletions
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);