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,
if (ret)
goto error_def;
/*
- * For now, only a single slock is supported.
+ * For now, only a single clock per trace is supported.
*/
file_stream->parent.current_clock = td->single_clock;
ret = create_stream_packet_index(td, file_stream);
goto error_index;
/*
- * For now, only a single slock is supported.
+ * For now, only a single clock per trace is supported.
*/
file_stream->parent.current_clock = td->single_clock;