X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/639e88c95c355661b56405f608d54c27d24ac7c5..c02558d70f9c62f9f5d04f1830be4cf16ca84bc0:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index 2bc655b633..f5d3f2b333 100644 --- 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;