Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sys/log: Zero-initialize log_offset struct #3348

Merged
merged 1 commit into from
Nov 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sys/log/full/src/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int
log_read_last_hdr(struct log *log, struct log_entry_hdr *out_hdr)
{
struct log_read_hdr_arg arg;
struct log_offset log_offset;
struct log_offset log_offset = {};

arg.hdr = out_hdr;
arg.read_success = 0;
Expand Down
2 changes: 1 addition & 1 deletion sys/log/full/src/log_fcb.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static int
log_fcb_set_watermark(struct log *log, uint32_t index)
{
int rc;
struct log_offset log_offset;
struct log_offset log_offset = {};
struct fcb_log *fl;
struct fcb *fcb;

Expand Down
2 changes: 1 addition & 1 deletion sys/log/full/src/log_fcb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ static int
log_fcb2_set_watermark(struct log *log, uint32_t index)
{
int rc;
struct log_offset log_offset;
struct log_offset log_offset = {};
struct fcb_log *fl;
struct fcb2 *fcb;

Expand Down