X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/1fc042e8bc9c51f9267fa1936deaebe59ae01ee7..6af348b861fc72e45173e89c5f9540cefb6ee252:/src/mc/Session.cpp diff --git a/src/mc/Session.cpp b/src/mc/Session.cpp index b88f98dd72..a01cf122ce 100644 --- a/src/mc/Session.cpp +++ b/src/mc/Session.cpp @@ -23,6 +23,7 @@ #include "src/smpi/include/private.hpp" XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_Session, mc, "Model-checker session"); +extern std::string _sg_mc_dot_output_file; namespace simgrid { namespace mc { @@ -122,7 +123,7 @@ void Session::logState() { mc_model_checker->getChecker()->logState(); - if ((_sg_mc_dot_output_file != nullptr) && (_sg_mc_dot_output_file[0] != '\0')) { + if (not _sg_mc_dot_output_file.empty()) { fprintf(dot_output, "}\n"); fclose(dot_output); }