aboutsummaryrefslogtreecommitdiffstats
path: root/src/lang.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lang.c')
-rw-r--r--src/lang.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lang.c b/src/lang.c
index b4c514b4..2aede988 100644
--- a/src/lang.c
+++ b/src/lang.c
@@ -102,11 +102,7 @@ void bc_func_init(BcFunc *f, const char *name) {
if (BC_IS_BC || !strcmp(name, bc_func_main))
bc_vec_init(&f->strs, sizeof(char*), bc_string_free);
#if BC_ENABLE_FUNC_FREE
- else {
- f->strs.v = NULL;
- f->strs.len = 0;
- f->strs.dtor = NULL;
- }
+ else bc_vec_clear(&f->strs);
#endif // BC_ENABLE_FUNC_FREE
bc_vec_init(&f->consts, sizeof(BcConst), bc_const_free);