Skip to content

Commit 632246f

Browse files
authored
Merge pull request #731 from HadrienG2/allow-empty-kinds
Make hwloc_distances_get_by_name accept empty kinds
2 parents 59f7156 + 9b2ace2 commit 632246f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hwloc/distances.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,7 @@ hwloc_distances_get_by_name(hwloc_topology_t topology, const char *name,
10371037
return -1;
10381038
}
10391039

1040-
return hwloc__distances_get(topology, name, HWLOC_OBJ_TYPE_NONE, nrp, distancesp, HWLOC_DISTANCES_KIND_ALL, flags);
1040+
return hwloc__distances_get(topology, name, HWLOC_OBJ_TYPE_NONE, nrp, distancesp, 0, flags);
10411041
}
10421042

10431043
int

0 commit comments

Comments
 (0)