Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : fix compilation error (with optimizations) with commit d90a41491cfb04...
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Mon, 19 Nov 2012 14:50:51 +0000 (15:50 +0100)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Mon, 19 Nov 2012 14:51:06 +0000 (15:51 +0100)
src/xbt/mmalloc/mm_diff.c

index d9ca5d6..f577979 100644 (file)
@@ -157,7 +157,7 @@ int mmalloc_compare_heap(xbt_mheap_t heap1, xbt_mheap_t heap2, xbt_dynar_t *stac
 
   xbt_dynar_t previous = xbt_dynar_new(sizeof(heap_area_pair_t), heap_area_pair_free_voidp);
 
-  int equal, res_compare;
+  int equal, res_compare = 0;
 
   /* Init equal information */
   i1 = 1;
@@ -227,6 +227,7 @@ int mmalloc_compare_heap(xbt_mheap_t heap1, xbt_mheap_t heap2, xbt_dynar_t *stac
     
       i2 = 1;
       equal = 0;
+      res_compare = 0;
   
       /* Try first to associate to same block in the other heap */
       if(heapinfo2[current_block].type == heapinfo1[current_block].type){