From: Arnaud Giersch Date: Wed, 4 Oct 2017 21:43:39 +0000 (+0200) Subject: Reduce scope for variable. X-Git-Tag: v3_17~16 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/a3445662ab8382ff70d83585c98c0041735f4a5d?ds=sidebyside Reduce scope for variable. --- diff --git a/src/mc/checker/LivenessChecker.cpp b/src/mc/checker/LivenessChecker.cpp index df9cd0301b..42ce4dc61e 100644 --- a/src/mc/checker/LivenessChecker.cpp +++ b/src/mc/checker/LivenessChecker.cpp @@ -392,9 +392,8 @@ void LivenessChecker::run() } /* Pair already visited ? stop the exploration on the current path */ - int visited_num = -1; if (not current_pair->exploration_started) { - visited_num = this->insertVisitedPair(reached_pair, current_pair.get()); + int visited_num = this->insertVisitedPair(reached_pair, current_pair.get()); if (visited_num != -1) { if (dot_output != nullptr) { fprintf(dot_output, "\"%d\" -> \"%d\" [%s];\n", this->previousPair_, visited_num,