diff options
author | Maria Matejka <mq@ucw.cz> | 2022-05-30 16:41:15 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-30 16:41:15 +0200 |
commit | e16e1e4138cf10fd8f2508fa0e41e5ec98de6d53 (patch) | |
tree | 9c09bc2b7ebe25e072d47ec58d5841b25e4960b7 /conf/confbase.Y | |
parent | 0097f24e2e8b3feb56d4ae5c5b56a8defd9f7d2e (diff) | |
parent | f2f3163f6c3fba7f9ef03640d7b2f6323873d2cc (diff) |
Merge commit 'f2f3163f6c3fba7f9ef03640d7b2f6323873d2cc' into haugesund
Diffstat (limited to 'conf/confbase.Y')
-rw-r--r-- | conf/confbase.Y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conf/confbase.Y b/conf/confbase.Y index 3fdacb12..a81560dc 100644 --- a/conf/confbase.Y +++ b/conf/confbase.Y @@ -152,9 +152,9 @@ conf: definition ; definition: DEFINE symbol '=' term ';' { - 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); + struct f_val val; + if (f_eval(f_linearize($4), &val) > F_RETURN) cf_error("Runtime error"); + cf_define_symbol($2, SYM_CONSTANT | val.type, val, lp_val_copy(cfg_mem, &val)); } ; |