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
reset memory before reuse
[simgrid.git]
/
src
/
xbt
/
xbt_str.c
diff --git
a/src/xbt/xbt_str.c
b/src/xbt/xbt_str.c
index
d18a945
..
e43bdc9
100644
(file)
--- a/
src/xbt/xbt_str.c
+++ b/
src/xbt/xbt_str.c
@@
-708,6
+708,7
@@
char* xbt_str_from_file(FILE *file) {
xbt_strbuff_t buff = xbt_strbuff_new();
char *res;
char bread[1024];
+ memset(bread,0,1024);
while (!feof(file)) {
fread(bread, 1, 1023, file);