From 46705152852ca895b4001a135a111e802172542e Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Fri, 18 Sep 2020 14:36:14 +0900 Subject: [PATCH] config: fix parsing of event_notifications list --- configfile.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configfile.c b/configfile.c index cebf9c72..e7dc326f 100644 --- a/configfile.c +++ b/configfile.c @@ -568,7 +568,7 @@ parse_configuration_item(ItemList *error_list, ItemList *warning_list, const cha } case CONFIG_EVENT_NOTIFICATION_LIST: { - parse_event_notifications_list((EventNotificationList *)&setting->val.notificationlistptr, + parse_event_notifications_list((EventNotificationList *)setting->val.notificationlistptr, value); break; } @@ -1892,6 +1892,9 @@ clear_event_notification_list(EventNotificationList *event_notifications) cell = next_cell; } } + + event_notifications->head = NULL; + event_notifications->tail = NULL; }