Skip to content

Commit d5aa310

Browse files
committed
mpiext/affinity: initialize all output variables of OMPI_Affinity_str()
Signed-off-by: Gilles Gouaillardet <[email protected]>
1 parent 501eb8d commit d5aa310

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ompi/mpiext/affinity/c/mpiext_affinity_str.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
77
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights
88
* reserved.
9-
* Copyright (c) 2015 Research Organization for Information Science
9+
* Copyright (c) 2015-2017 Research Organization for Information Science
1010
* and Technology (RIST). All rights reserved.
1111
* Copyright (c) 2015 Intel, Inc. All rights reserved.
1212
* $COPYRIGHT$
@@ -59,6 +59,7 @@ int OMPI_Affinity_str(ompi_affinity_fmt_t fmt_type,
5959

6060
memset(ompi_bound, 0, OMPI_AFFINITY_STRING_MAX);
6161
memset(current_binding, 0, OMPI_AFFINITY_STRING_MAX);
62+
memset(exists, 0, OMPI_AFFINITY_STRING_MAX);
6263

6364
/* If we have no hwloc support, return nothing */
6465
if (NULL == opal_hwloc_topology) {

0 commit comments

Comments
 (0)