projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: dereference after null check
[babeltrace.git]
/
lib
/
ctf-ir
/
stream.c
diff --git
a/lib/ctf-ir/stream.c
b/lib/ctf-ir/stream.c
index fcd8c80ebc00c000bbd8e58368c08702cadd33b8..4ce2fe3016dce3957c4d078cf7c3e194f268bc87 100644
(file)
--- a/
lib/ctf-ir/stream.c
+++ b/
lib/ctf-ir/stream.c
@@
-1511,7
+1511,7
@@
int bt_ctf_stream_flush(struct bt_ctf_stream *stream)
if (!stream) {
BT_LOGW_STR("Invalid parameter: stream is NULL.");
ret = -1;
if (!stream) {
BT_LOGW_STR("Invalid parameter: stream is NULL.");
ret = -1;
- goto end;
+ goto end
_no_stream
;
}
if (stream->pos.fd < 0) {
}
if (stream->pos.fd < 0) {
@@
-1749,6
+1749,8
@@
end:
"packet-size=%" PRIu64,
stream->pos.offset, stream->pos.packet_size);
}
"packet-size=%" PRIu64,
stream->pos.offset, stream->pos.packet_size);
}
+
+end_no_stream:
return ret;
}
return ret;
}
This page took
0.023714 seconds
and
4
git commands to generate.