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
a31e8a5
..
4bb6e41
100644
(file)
--- a/
src/smpi/instr_smpi.c
+++ b/
src/smpi/instr_smpi.c
@@
-1,4
+1,4
@@
-/* Copyright (c) 2010. The SimGrid Team.
+/* Copyright (c) 2010
, 2012-2013
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-271,8
+271,7
@@
void TRACE_smpi_send(int rank, int src, int dst, int size)
{
if (!TRACE_smpi_is_enabled()) return;
{
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];
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;
{
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];
TRACE_smpi_get_key(src, dst, key, INSTR_DEFAULT_STR_SIZE);
char str[INSTR_DEFAULT_STR_SIZE];