Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix https://github.com/simgrid/simgrid/issues/294
[simgrid.git] / src / simix / smx_network.cpp
index 22c19a4..06f3d27 100644 (file)
@@ -587,7 +587,7 @@ void SIMIX_comm_finish(smx_activity_t synchro)
     if (simcall->issuer->exception &&
         (simcall->call == SIMCALL_COMM_WAITANY || simcall->call == SIMCALL_COMM_TESTANY)) {
       // First retrieve the rank of our failing synchro
-      int rank;
+      int rank = -1;
       if (simcall->call == SIMCALL_COMM_WAITANY) {
         rank = xbt_dynar_search(simcall_comm_waitany__get__comms(simcall), &synchro);
       } else if (simcall->call == SIMCALL_COMM_TESTANY) {
@@ -615,9 +615,6 @@ void SIMIX_comm_finish(smx_activity_t synchro)
           xbt_die("Unexpected xbt_ex(%s). Please enhance this code", xbt_ex_catname(e.category));
         }
       }
-      catch(...) {
-        // Nothing to do
-      }
     }
 
     if (simcall->issuer->host_->is_off()) {