Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : test if variable is initialized (warning with optimizations)
[simgrid.git] / src / mc / mc_checkpoint.c
index 81235b1c802696f0f219aa079b2a2c38eaea1b84..3e1f5a0271ce70ceb4d202886d51389ea6bdd231 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);