A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Yet another batch of fixes
[simgrid.git]
/
src
/
smpi
/
smpi_f77.cpp
diff --git
a/src/smpi/smpi_f77.cpp
b/src/smpi/smpi_f77.cpp
index
9b2aaac
..
09cb210
100644
(file)
--- a/
src/smpi/smpi_f77.cpp
+++ b/
src/smpi/smpi_f77.cpp
@@
-787,9
+787,15
@@
void mpi_info_get_ (int* info,char *key,int* valuelen, char *value, int *flag, i
tkey[keylen]='\0';
*ierr = MPI_Info_get(smpi_info_f2c(*info),tkey,*valuelen, value, flag);
xbt_free(tkey);
tkey[keylen]='\0';
*ierr = MPI_Info_get(smpi_info_f2c(*info),tkey,*valuelen, value, flag);
xbt_free(tkey);
- int i = 0;
- for (i=strlen(value); i<*valuelen; i++)
- value[i]=' ';
+ if(*flag==true){
+ int replace=0, i=0;
+ for (i=0; i<*valuelen; i++){
+ if(value[i]=='\0')
+ replace=1;
+ if(replace)
+ value[i]=' ';
+ }
+ }
}
void mpi_info_free_(int* info, int* ierr){
}
void mpi_info_free_(int* info, int* ierr){