File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,6 @@ hwloc_distrib_root_levels(hwloc_topology_t topology,
122122 qsort (levels , n_types , sizeof (* levels ), hwloc_distrib_level_cmp_depth );
123123
124124 // Walk from top to bottom and set arity to the maximum arity below root field.
125-
126125 parent = root ;
127126 for (i = 0 ; i < n_types ; i ++ ){
128127 while (parent ) {
@@ -208,7 +207,9 @@ hwloc_distrib_iterator_round_robin(hwloc_topology_t topology,
208207 const hwloc_obj_type_t type ,
209208 const unsigned long flags ){
210209 hwloc_obj_t root = hwloc_get_obj_by_depth (topology , 0 , 0 );
211- struct hwloc_distrib_iterator * it = malloc (sizeof (* it ) + sizeof (hwloc_obj_t ) + sizeof (struct hwloc_distrib_level * ));
210+ struct hwloc_distrib_iterator * it ;
211+
212+ it = malloc (sizeof (* it ) + sizeof (hwloc_obj_t ) + sizeof (struct hwloc_distrib_level * ));
212213 if (it == NULL )
213214 return NULL ;
214215
You can’t perform that action at this time.
0 commit comments