Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ensure malloc is not called with a size of 0.
[simgrid.git] / src / smpi / mpi / smpi_comm.cpp
index 5248ee9..e4e9929 100644 (file)
@@ -424,6 +424,7 @@ void Comm::init_smp(){
       leader_group_size++;
     }
   }
+  xbt_assert(leader_group_size > 0);
   std::sort(leader_list, leader_list + leader_group_size);
 
   MPI_Group leaders_group = new  Group(leader_group_size);