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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user