get new block fix
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 4 Aug 2005 23:58:09 +0000 (23:58 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Thu, 4 Aug 2005 23:58:09 +0000 (23:58 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1006 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/ltt-newlib/tracefile.c

index 65f618b8f2babf46f1f069ccc2b02439d0b17e34..312829c9601cbc163989154dac4cc07095c84c14 100644 (file)
@@ -1359,6 +1359,13 @@ LttEvent *ltt_tracefile_read(LttTracefile *tf)
         g_error("Can not map block");
         return NULL;
       }
+      /* seek to the first event */
+      err = ltt_seek_next_event(tf);
+      if(unlikely(err == ERANGE)) {
+        g_error("event id is out of range\n");
+        return NULL;
+      }
+
       pos = tf->event.offset;
     }
   }
This page took 0.026047 seconds and 4 git commands to generate.