Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't check value of an output .. it may be uninitialized, obviously
[simgrid.git] / src / smpi / smpi_pmpi.cpp
index 089ce46..a9927ed 100644 (file)
@@ -3223,7 +3223,7 @@ int PMPI_Info_get_nthkey( MPI_Info info, int n, char *key){
 
 int PMPI_Info_get_valuelen( MPI_Info info, char *key, int *valuelen, int *flag){
   *flag=false;
-  if (info == NULL || key == NULL || valuelen==NULL || *valuelen <0)
+  if (info == NULL || key == NULL || valuelen==NULL)
     return MPI_ERR_ARG;
   char* tmpvalue=(char*)xbt_dict_get_or_null(info->info_dict, key);
   if(tmpvalue){