summaryrefslogtreecommitdiff
path: root/nest
diff options
context:
space:
mode:
Diffstat (limited to 'nest')
-rw-r--r--nest/config.Y4
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;