From: Augustin Degomme Date: Mon, 6 Oct 2014 09:33:01 +0000 (+0200) Subject: duplicated lines X-Git-Tag: v3_12~768 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/3cc7b00a7090a9d8f345547bd7b8f56c26ad5acd duplicated lines --- diff --git a/src/smpi/smpi_comm.c b/src/smpi/smpi_comm.c index 19fadf3b0f..add045fa1d 100644 --- a/src/smpi/smpi_comm.c +++ b/src/smpi/smpi_comm.c @@ -569,8 +569,6 @@ int smpi_comm_attr_get(MPI_Comm comm, int keyval, void* attr_value, int* flag){ return MPI_SUCCESS; } TRY { - char* tmpkey=xbt_malloc(INTSIZEDCHAR); - sprintf(tmpkey, "%d", keyval); *(void**)attr_value = xbt_dict_get(comm->attributes, (const char*)tmpkey); *flag=1; } diff --git a/src/smpi/smpi_mpi_dt.c b/src/smpi/smpi_mpi_dt.c index 860e48c532..d7f0fc9ce3 100644 --- a/src/smpi/smpi_mpi_dt.c +++ b/src/smpi/smpi_mpi_dt.c @@ -1703,8 +1703,6 @@ int smpi_type_attr_get(MPI_Datatype type, int keyval, void* attr_value, int* fla return MPI_SUCCESS; } TRY { - char* tmpkey=xbt_malloc(INTSIZEDCHAR); - sprintf(tmpkey, "%d", keyval); *(void**)attr_value = xbt_dict_get(type->attributes, (const char*)tmpkey); *flag=1; }