Commit 912a3cadb95f195e8d08ab92bf6e362b47954287

Thomas de Grivel 2023-12-18T07:44:42

fix list_to_array

diff --git a/libc3/env.c b/libc3/env.c
index b2b8b3b..820a251 100644
--- a/libc3/env.c
+++ b/libc3/env.c
@@ -168,8 +168,6 @@ bool env_eval_call (s_env *env, const s_call *call, s_tag *dest)
   assert(call);
   assert(dest);
   (void) call;
-  io_inspect_call(call);
-  io_write_1("\n");
   call_init_copy(&c, call);
   env_eval_call_resolve(env, &c);
   if (c.cfn)
diff --git a/libc3/list.c b/libc3/list.c
index ce81976..32ab964 100644
--- a/libc3/list.c
+++ b/libc3/list.c
@@ -334,6 +334,7 @@ s_array * list_to_array (const s_list *list, const s_sym *type,
     data += size;
     l = list_next(l);
   }
+  *dest = tmp;
   return dest;
  ko:
   if (sym_to_clean(type, &clean) && clean) {