Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rollback - the java code should make a THROWF call - adrien
[simgrid.git] / src / smpi / smpi_rma.c
index dc311a5..72f4cc7 100644 (file)
@@ -85,6 +85,11 @@ int smpi_mpi_win_free( MPI_Win* win){
 }
 
 void smpi_mpi_win_get_name(MPI_Win win, char* name, int* length){
+  if(win->name==NULL){
+    *length=0;
+    name=NULL;
+    return;
+  }
   *length = strlen(win->name);
   strcpy(name, win->name);
 }