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
Replace sprintf by snprintf.
[simgrid.git]
/
src
/
mc
/
mc_record.cpp
diff --git
a/src/mc/mc_record.cpp
b/src/mc/mc_record.cpp
index
2bc655b
..
f5d3f2b
100644
(file)
--- a/
src/mc/mc_record.cpp
+++ b/
src/mc/mc_record.cpp
@@
-79,7
+79,7
@@
RecordTrace parseRecordTrace(const char* data)
{
RecordTrace res;
XBT_INFO("path=%s", data);
- if (
!data || !data[0]
)
+ if (
data == nullptr || data[0] == '\0'
)
throw std::runtime_error("Could not parse record path");
const char* current = data;