From 30b846826905b4da76f59a212a31928bd55e9783 Mon Sep 17 00:00:00 2001 From: "Ondrej Zajicek (work)" Date: Tue, 24 Nov 2020 04:09:11 +0100 Subject: Minor cleanups with cfg_allocz() Also fixes some more failed asserts due to add_tail(). --- nest/config.Y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nest/config.Y') diff --git a/nest/config.Y b/nest/config.Y index 83f2c7ba..ec7217b0 100644 --- a/nest/config.Y +++ b/nest/config.Y @@ -479,11 +479,11 @@ password_item: password_item_begin: PASSWORD text { if (!this_p_list) { - this_p_list = cfg_alloc(sizeof(list)); + this_p_list = cfg_allocz(sizeof(list)); init_list(this_p_list); password_id = 1; } - this_p_item = cfg_alloc(sizeof (struct password_item)); + this_p_item = cfg_allocz(sizeof(struct password_item)); this_p_item->password = $2; this_p_item->length = strlen($2); this_p_item->genfrom = 0; -- cgit v1.2.3