Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit 7887c58

Browse files
authored
Merge pull request #1304 from hppritcha/topic/fix_uninitialized_variables
code cleanup: clang is now a happier panda
2 parents 64dd52e + d7a4bd5 commit 7887c58

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ompi/mca/coll/base/coll_base_alltoall.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* University of Stuttgart. All rights reserved.
1111
* Copyright (c) 2004-2005 The Regents of the University of California.
1212
* All rights reserved.
13-
* Copyright (c) 2013 Los Alamos National Security, LLC. All Rights
13+
* Copyright (c) 2013-2016 Los Alamos National Security, LLC. All Rights
1414
* reserved.
1515
* Copyright (c) 2014-2016 Research Organization for Information Science
1616
* and Technology (RIST). All rights reserved.
@@ -341,7 +341,8 @@ int ompi_coll_base_alltoall_intra_linear_sync(const void *sbuf, int scount,
341341
mca_coll_base_module_t *module,
342342
int max_outstanding_reqs)
343343
{
344-
int line, error, ri, si, rank, size, nreqs, nrreqs, nsreqs, total_reqs;
344+
int line, error, ri, si, rank, size, nrreqs, nsreqs, total_reqs;
345+
int nreqs = 0;
345346
char *psnd, *prcv;
346347
ptrdiff_t slb, sext, rlb, rext;
347348

@@ -561,7 +562,8 @@ int ompi_coll_base_alltoall_intra_basic_linear(const void *sbuf, int scount,
561562
struct ompi_communicator_t *comm,
562563
mca_coll_base_module_t *module)
563564
{
564-
int i, rank, size, err, nreqs, line;
565+
int i, rank, size, err, line;
566+
int nreqs = 0;
565567
char *psnd, *prcv;
566568
MPI_Aint lb, sndinc, rcvinc;
567569
ompi_request_t **req, **sreq, **rreq;

0 commit comments

Comments
 (0)