X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/7207080bb744f50a6d8c418f25d82ad69e9b4f44..b130b354872c90b8103859b2bcaa1f1bcb7f0967:/src/xbt/xbt_main.cpp diff --git a/src/xbt/xbt_main.cpp b/src/xbt/xbt_main.cpp index d60ccb09de..bfdf869665 100644 --- a/src/xbt/xbt_main.cpp +++ b/src/xbt/xbt_main.cpp @@ -116,14 +116,14 @@ static void xbt_postexit() /** @brief Initialize the xbt mechanisms. */ void xbt_init(int *argc, char **argv) { - simgrid::xbt::install_exception_handler(); - xbt_initialized++; if (xbt_initialized > 1) { XBT_DEBUG("XBT has been initialized %d times.", xbt_initialized); return; } + simgrid::xbt::install_exception_handler(); + xbt_binary_name = argv[0]; xbt_cmdline = xbt_dynar_new(sizeof(char*), NULL); for (int i = 0; i < *argc; i++)