Skip to content

Commit 1438a79

Browse files
authored
Merge pull request #12568 from devreal/fix-base-reduce-req-init
Fix warning about uninitialized variable in coll_base_reduce
2 parents 2aef545 + a1e00c7 commit 1438a79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mca/coll/base/coll_base_reduce.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
* Copyright (c) 2018 Siberian State University of Telecommunications
1919
* and Information Science. All rights reserved.
2020
* Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
21+
* Copyright (c) 2024 Stony Brook University. All rights reserved.
2122
* $COPYRIGHT$
2223
*
2324
* Additional copyrights may follow
@@ -1186,7 +1187,7 @@ int ompi_coll_base_reduce_intra_knomial( const void *sendbuf, void *recvbuf,
11861187
bool is_leaf;
11871188
ptrdiff_t buf_size, gap = 0;
11881189
int max_reqs = 0, num_reqs;
1189-
ompi_request_t **reqs;
1190+
ompi_request_t **reqs = NULL;
11901191

11911192
OPAL_OUTPUT((ompi_coll_base_framework.framework_output, "coll:base:ompi_coll_base_reduce_intra_knomial msg size %zu, max_requests %d",
11921193
count, max_outstanding_reqs));

0 commit comments

Comments
 (0)