Skip to content
Snippets Groups Projects
Commit b86d23cd authored by Peter W. Draper's avatar Peter W. Draper
Browse files

Don't reference t->cj which can be NULL.

Reported by @jborrow, closes #618.
parent eb0b5de3
No related branches found
No related tags found
No related merge requests found
...@@ -719,7 +719,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) { ...@@ -719,7 +719,7 @@ static void scheduler_splittask_hydro(struct task *t, struct scheduler *s) {
t->ci = ci->progeny[csp->pairs[0].pid]; t->ci = ci->progeny[csp->pairs[0].pid];
t->cj = cj->progeny[csp->pairs[0].pjd]; t->cj = cj->progeny[csp->pairs[0].pjd];
cell_set_flag(t->ci, cell_flag_has_tasks); cell_set_flag(t->ci, cell_flag_has_tasks);
cell_set_flag(t->cj, cell_flag_has_tasks); if (t->cj != NULL)cell_set_flag(t->cj, cell_flag_has_tasks);
t->flags = csp->pairs[0].sid; t->flags = csp->pairs[0].sid;
for (int k = 1; k < csp->count; k++) { for (int k = 1; k < csp->count; k++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment