Skip to content

Commit

Permalink
Initialize data_in and data_out fields with nullptr
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Schuchart <[email protected]>
  • Loading branch information
devreal committed Sep 16, 2024
1 parent 7193769 commit 93c4c13
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ttg/ttg/parsec/task.h
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,10 @@ namespace ttg_parsec {
parsec_task.chore_mask = 1<<0;

// TODO: can we avoid this?
for (int i = 0; i < MAX_PARAM_COUNT; ++i) { this->parsec_task.data[i].data_in = nullptr; }
for (int i = 0; i < MAX_PARAM_COUNT; ++i) {
this->parsec_task.data[i].data_in = nullptr;
this->parsec_task.data[i].data_out = nullptr;
}
}

public:
Expand Down

0 comments on commit 93c4c13

Please sign in to comment.