Initialize the field directly to the right value. The field was
originally initialized to 0 to mimic the g_new0 behavior.
Change-Id: Ia1df1be730b77ca0d69ae05dae12bd60ef9e9ed8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8346
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12341
Tested-by: jenkins <jenkins@lttng.org>
{
ctf_fs_ds_index_entry::UP entry = bt2s::make_unique<ctf_fs_ds_index_entry>(offset, packetSize);
- entry->packet_seq_num = UINT64_MAX;
-
return entry;
}
/*
* Packet sequence number, or UINT64_MAX if not present in the index.
*/
- uint64_t packet_seq_num = 0;
+ uint64_t packet_seq_num = UINT64_MAX;
};
struct ctf_fs_ds_index