From fc6767991c724ff1959e982fb2b02e515b65f39a Mon Sep 17 00:00:00 2001 From: degomme Date: Thu, 7 Apr 2016 19:40:53 +0200 Subject: [PATCH] Don't check value of an output .. it may be uninitialized, obviously --- src/smpi/smpi_pmpi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){ -- 2.20.1