projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix babeltrace-log uninitialized memory
[babeltrace.git]
/
formats
/
ctf
/
ctf.c
diff --git
a/formats/ctf/ctf.c
b/formats/ctf/ctf.c
index f43fe91789d21d109c0adf407a0b7e951201ca39..d4ff2a52267be7d2a00d2428bd7b42a068875a01 100644
(file)
--- a/
formats/ctf/ctf.c
+++ b/
formats/ctf/ctf.c
@@
-550,6
+550,7
@@
error:
void ctf_init_pos(struct ctf_stream_pos *pos, int fd, int open_flags)
{
+ memset(pos, 0, sizeof(*pos));
pos->fd = fd;
if (fd >= 0) {
pos->packet_cycles_index = g_array_new(FALSE, TRUE,
This page took
0.022734 seconds
and
4
git commands to generate.