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
Add an assert for fopen.
[simgrid.git]
/
src
/
instr
/
jedule
/
jedule_sd_binding.cpp
diff --git
a/src/instr/jedule/jedule_sd_binding.cpp
b/src/instr/jedule/jedule_sd_binding.cpp
index
3d8e887
..
0031065
100644
(file)
--- a/
src/instr/jedule/jedule_sd_binding.cpp
+++ b/
src/instr/jedule/jedule_sd_binding.cpp
@@
-49,6
+49,7
@@
void jedule_sd_dump(const char * filename)
}
FILE* fh = fopen(fname.c_str(), "w");
+ xbt_assert(fh != nullptr, "Failed to open file: %s", fname.c_str());
my_jedule->write_output(fh);