X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8f7ec2e4b08cd2b27aa34b2c9fec2af0ad79d53a..a493dab29fff80a4d222c18c3057c811b8b06d3f:/src/mc/mc_record.cpp diff --git a/src/mc/mc_record.cpp b/src/mc/mc_record.cpp index 8330582fe5..e074d8e536 100644 --- a/src/mc/mc_record.cpp +++ b/src/mc/mc_record.cpp @@ -61,9 +61,8 @@ simgrid::mc::RecordTrace::RecordTrace(const char* data) while (*current) { long aid; int times_considered; - int count = sscanf(current, "%ld/%d", &aid, ×_considered); - if(count != 2 && count != 1) + if (int count = sscanf(current, "%ld/%d", &aid, ×_considered); count != 2 && count != 1) throw std::invalid_argument("Could not parse record path"); push_back(new simgrid::mc::Transition(simgrid::mc::Transition::Type::UNKNOWN, aid, times_considered));