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_win.cpp
index 4d74e82..c745029 100644 (file)
@@ -735,7 +735,7 @@ int Win::shared_query(int rank, MPI_Aint* size, int* disp_unit, void* baseptr)
     *static_cast<void**>(baseptr) = target_win->base_;
   } else {
     *size                         = 0;
-    *static_cast<void**>(baseptr) = xbt_malloc(0);
+    *static_cast<void**>(baseptr) = nullptr;
   }
   return MPI_SUCCESS;
 }