Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
duplicated lines
authorAugustin Degomme <augustin.degomme@imag.fr>
Mon, 6 Oct 2014 09:33:01 +0000 (11:33 +0200)
committerAugustin Degomme <augustin.degomme@imag.fr>
Mon, 6 Oct 2014 09:33:01 +0000 (11:33 +0200)
src/smpi/smpi_comm.c
src/smpi/smpi_mpi_dt.c

index 19fadf3..add045f 100644 (file)
@@ -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;
   }
index 860e48c..d7f0fc9 100644 (file)
@@ -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;
   }