X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=formats%2Fctf%2Fctf.c;h=317457e883c5d7dab6271d3b5c430281e96ca987;hb=2f0c6a5248bb8c00adf37648c301e87f63709408;hp=759708856b0a2044c4802325d2a2434ae0525287;hpb=2d686891bc3f1a80bff4bfdcea70f30a057ee388;p=deliverable%2Fbabeltrace.git diff --git a/formats/ctf/ctf.c b/formats/ctf/ctf.c index 759708856..317457e88 100644 --- a/formats/ctf/ctf.c +++ b/formats/ctf/ctf.c @@ -1849,6 +1849,10 @@ int ctf_open_file_stream_read(struct ctf_trace *td, const char *path, int flags, goto error_free; } file_stream->pos.index_fp = fdopen(ret, "r"); + if (!file_stream->pos.index_fp) { + perror("fdopen() error"); + goto error_free; + } ret = import_stream_packet_index(td, file_stream); if (ret) { ret = -1;