projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: handle packet_seek errors
[babeltrace.git]
/
formats
/
ctf
/
ir
/
stream.c
diff --git
a/formats/ctf/ir/stream.c
b/formats/ctf/ir/stream.c
index 44cfb8bb8f8dcf50a5d8c4b97ff28e7047ea40a4..e2e9b82825ed89801f803aa1b052af8dce0ea22c 100644
(file)
--- a/
formats/ctf/ir/stream.c
+++ b/
formats/ctf/ir/stream.c
@@
-778,6
+778,10
@@
int bt_ctf_stream_flush(struct bt_ctf_stream *stream)
/* mmap the next packet */
ctf_packet_seek(&stream->pos.parent, 0, SEEK_CUR);
+ ret = bt_packet_seek_get_error();
+ if (ret) {
+ goto end;
+ }
ret = bt_ctf_field_serialize(stream->packet_header, &stream->pos);
if (ret) {
This page took
0.027418 seconds
and
4
git commands to generate.