When using `hare build -c` the same task will be appended to the plan
list twice, causing a crash when using the new malloc.
Signed-off-by: Dominik Hagowski <dom@inik.dev>
---
cmd/hare/subcmds.ha | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha
index 94ae837d..29788733 100644
--- a/cmd/hare/subcmds.ha
+++ b/cmd/hare/subcmds.ha
@@ -175,9 +175,8 @@ fn build(cmd: *getopt::command) void = {
case goal::EXE =>
sched_hare_exe(&plan, ver, output, depends...);
case goal::OBJ =>
- let task = sched_hare_object(&plan, ver,
+ sched_hare_object(&plan, ver,
namespace, output, depends...);
- append(plan.scheduled, task);
};
match (plan_execute(&plan, verbose)) {
case void => void;
--
2.41.0