X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=5911b19d25cdaa5f45735893a0771af1fbf42b6a;hp=51a87083f10cd82c67403be898edff8277decf3a;hb=2715de36f53dbe1a631a757e8fd3f53b81784c26;hpb=06789ffdba97a7be3cceae51e97e82cc5a6c318a diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 51a87083..5911b19d 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1384,6 +1384,12 @@ struct trace_descriptor *ctf_open_trace(const char *path, int flags, struct ctf_trace *td; int ret; + /* + * If packet_seek is NULL, we provide our default version. + */ + if (!packet_seek) + packet_seek = ctf_packet_seek; + td = g_new0(struct ctf_trace, 1); switch (flags & O_ACCMODE) {