Skip to content

Commit bc4f25b

Browse files
fix: segfault due to uninitialized array copy (#124)
1 parent d27c296 commit bc4f25b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kaminpar-shm/datastructures/partitioned_graph.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void GenericPartitionedGraph<Graph>::sync_dense_and_aligned_block_weights() cons
9595
if (_k == 2) {
9696
_dense_block_weights[0] = _aligned_block_weights[0].value;
9797
_dense_block_weights[1] = _aligned_block_weights[1].value;
98-
} else {
98+
} else if (use_aligned_block_weights()) {
9999
tbb::parallel_for<BlockID>(0, _k, [&](const BlockID b) {
100100
_dense_block_weights[b] = _aligned_block_weights[b].value;
101101
});

0 commit comments

Comments
 (0)