X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=625b1c097a9de02eab852e1d4d9e9c6273177fa3;hp=24b754df034192cdb4f617dbeb23b50901eda22f;hb=670977d3f384db208f375255a83060d90075d626;hpb=d8ea2d29b07b1db11e567f7d579553b783ee52d2;ds=sidebyside diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 24b754df..625b1c09 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -189,7 +189,7 @@ void ctf_move_pos_slow(struct ctf_stream_pos *pos, size_t offset, int whence) assert(0); } if (pos->cur_index >= pos->packet_index->len) { - pos->offset = -EOF; + pos->offset = EOF; return; } index = &g_array_index(pos->packet_index, struct packet_index,