projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: uncheck null pointer
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index 759708856b0a2044c4802325d2a2434ae0525287..317457e883c5d7dab6271d3b5c430281e96ca987 100644
(file)
--- 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;
This page took
0.023237 seconds
and
4
git commands to generate.