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
Verify that request is not NULL (plus reindent).
[simgrid.git]
/
src
/
smpi
/
instr_smpi.c
diff --git
a/src/smpi/instr_smpi.c
b/src/smpi/instr_smpi.c
index
62a0d65
..
4bb6e41
100644
(file)
--- a/
src/smpi/instr_smpi.c
+++ b/
src/smpi/instr_smpi.c
@@
-271,8
+271,7
@@
void TRACE_smpi_send(int rank, int src, int dst, int size)
{
if (!TRACE_smpi_is_enabled()) return;
- char key[INSTR_DEFAULT_STR_SIZE];
- bzero (key, INSTR_DEFAULT_STR_SIZE);
+ char key[INSTR_DEFAULT_STR_SIZE] = {0};
TRACE_smpi_put_key(src, dst, key, INSTR_DEFAULT_STR_SIZE);
char str[INSTR_DEFAULT_STR_SIZE];
@@
-287,8
+286,7
@@
void TRACE_smpi_recv(int rank, int src, int dst)
{
if (!TRACE_smpi_is_enabled()) return;
- char key[INSTR_DEFAULT_STR_SIZE];
- bzero (key, INSTR_DEFAULT_STR_SIZE);
+ char key[INSTR_DEFAULT_STR_SIZE] = {0};
TRACE_smpi_get_key(src, dst, key, INSTR_DEFAULT_STR_SIZE);
char str[INSTR_DEFAULT_STR_SIZE];