Skip to content

Commit 450c72d

Browse files
committed
Initialize the topology
Don't pass an unitialized variable to PMIx Signed-off-by: Ralph Castain <[email protected]>
1 parent c5a8a78 commit 450c72d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

opal/mca/common/ofi/common_ofi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ static int compute_dev_distances(pmix_device_distance_t **distances,
473473
size_t ninfo;
474474
pmix_info_t *info;
475475
pmix_cpuset_t cpuset;
476-
pmix_topology_t pmix_topo;
476+
pmix_topology_t pmix_topo = PMIX_TOPOLOGY_STATIC_INIT;
477477
pmix_device_type_t type = PMIX_DEVTYPE_OPENFABRICS |
478478
PMIX_DEVTYPE_NETWORK;
479479

0 commit comments

Comments
 (0)