Skip to content

Commit

Permalink
Merge pull request #12568 from devreal/fix-base-reduce-req-init
Browse files Browse the repository at this point in the history
Fix warning about uninitialized variable in coll_base_reduce
  • Loading branch information
janjust authored Jun 11, 2024
2 parents 2aef545 + a1e00c7 commit 1438a79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ompi/mca/coll/base/coll_base_reduce.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* Copyright (c) 2018 Siberian State University of Telecommunications
* and Information Science. All rights reserved.
* Copyright (c) 2022 Cisco Systems, Inc. All rights reserved.
* Copyright (c) 2024 Stony Brook University. All rights reserved.
* $COPYRIGHT$
*
* Additional copyrights may follow
Expand Down Expand Up @@ -1186,7 +1187,7 @@ int ompi_coll_base_reduce_intra_knomial( const void *sendbuf, void *recvbuf,
bool is_leaf;
ptrdiff_t buf_size, gap = 0;
int max_reqs = 0, num_reqs;
ompi_request_t **reqs;
ompi_request_t **reqs = NULL;

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

0 comments on commit 1438a79

Please sign in to comment.