Skip to content
Snippets Groups Projects
Commit f7f48af5 authored by vitawrap's avatar vitawrap
Browse files

Schedule: fix new_schedule

parent c015234f
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,8 @@ struct schedule_t * new_schedule(int num_m) {
struct schedule_t* sched = (struct schedule_t*)malloc(sizeof(struct schedule_t));
assert(sched);
sched->schedule = (struct list_t**)calloc(num_m, sizeof(struct list_t*)); // init à zero automatiquement
for (int i = 0; i < num_m; ++i)
sched->schedule[i] = new_list(view_schedule_node, delete_schedule_node);
sched->num_machines = num_m;
return sched;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment