Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix error: ‘current_region’ may be used uninitialized in this function.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 23 Sep 2013 11:02:55 +0000 (13:02 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 23 Sep 2013 11:23:55 +0000 (13:23 +0200)
src/mc/mc_global.c

index b5e073e..d137272 100644 (file)
@@ -1595,7 +1595,7 @@ void MC_ignore(void *addr, size_t size){
     unsigned int cursor = 0;
     int start = 0;
     int end = xbt_dynar_length(mc_checkpoint_ignore) -1;
-    mc_checkpoint_ignore_region_t current_region;
+    mc_checkpoint_ignore_region_t current_region = NULL;
 
     while(start <= end){
       cursor = (start + end) / 2;