Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : test if variable is initialized (warning with optimizations)
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 7 Oct 2012 12:47:46 +0000 (14:47 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 7 Oct 2012 12:47:46 +0000 (14:47 +0200)
src/mc/mc_checkpoint.c

index 81235b1..3e1f5a0 100644 (file)
@@ -207,7 +207,7 @@ void get_libsimgrid_plt_section(){
       lfields[i] = strtok(NULL, " ");
     }
 
-    if(i>=5){
+    if(i>=6){
       if(strcmp(lfields[1], ".plt") == 0){
         size = strtoul(lfields[2], NULL, 16);
         offset = strtoul(lfields[5], NULL, 16);
@@ -264,7 +264,7 @@ void get_binary_plt_section(){
       lfields[i] = strtok(NULL, " ");
     }
 
-    if(i>=5){
+    if(i>=6){
       if(strcmp(lfields[1], ".plt") == 0){
         size = strtoul(lfields[2], NULL, 16);
         offset = strtoul(lfields[5], NULL, 16);