From: degomme Date: Thu, 7 Apr 2016 17:40:53 +0000 (+0200) Subject: Don't check value of an output .. it may be uninitialized, obviously X-Git-Tag: v3_13~122 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/fc6767991c724ff1959e982fb2b02e515b65f39a Don't check value of an output .. it may be uninitialized, obviously --- diff --git a/src/smpi/smpi_pmpi.cpp b/src/smpi/smpi_pmpi.cpp index 089ce46ec0..a9927ed300 100644 --- a/src/smpi/smpi_pmpi.cpp +++ b/src/smpi/smpi_pmpi.cpp @@ -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){