summaryrefslogtreecommitdiff
path: root/conf/confbase.Y
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2020-11-24 04:09:11 +0100
committerOndrej Zajicek (work) <santiago@crfreenet.org>2020-11-24 04:09:11 +0100
commit30b846826905b4da76f59a212a31928bd55e9783 (patch)
treeb8dcc75f7e76a71df397ed240e826fdefaebf0fb /conf/confbase.Y
parent1678bc07467e6d977fc2f6bf830274ca92e0a6e5 (diff)
Minor cleanups with cfg_allocz()
Also fixes some more failed asserts due to add_tail().
Diffstat (limited to 'conf/confbase.Y')
-rw-r--r--conf/confbase.Y2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y
index f0343a93..67dcac6c 100644
--- a/conf/confbase.Y
+++ b/conf/confbase.Y
@@ -148,7 +148,7 @@ conf: definition ;
definition:
DEFINE symbol '=' term ';' {
- struct f_val *val = cfg_alloc(sizeof(struct f_val));
+ struct f_val *val = cfg_allocz(sizeof(struct f_val));
if (f_eval(f_linearize($4), cfg_mem, val) > F_RETURN) cf_error("Runtime error");
cf_define_symbol($2, SYM_CONSTANT | val->type, val, val);
}