diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 04:09:11 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2020-11-24 04:09:11 +0100 |
commit | 30b846826905b4da76f59a212a31928bd55e9783 (patch) | |
tree | b8dcc75f7e76a71df397ed240e826fdefaebf0fb /nest/config.Y | |
parent | 1678bc07467e6d977fc2f6bf830274ca92e0a6e5 (diff) |
Minor cleanups with cfg_allocz()
Also fixes some more failed asserts due to add_tail().
Diffstat (limited to 'nest/config.Y')
-rw-r--r-- | nest/config.Y | 4 |
1 files changed, 2 insertions, 2 deletions
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; |