Skip to content

Commit

Permalink
Initialise err to 0 to avoid maybe used uninitialised warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bp-amitchone authored and martinjaeger committed May 24, 2024
1 parent 56fea62 commit f326c5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/storage_eeprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static int thingset_eeprom_load(off_t offset)

static int thingset_eeprom_save(off_t offset, size_t useable_size)
{
int err;
int err = 0;

struct shared_buffer *sbuf = thingset_sdk_shared_buffer();
k_sem_take(&sbuf->lock, K_FOREVER);
Expand Down

0 comments on commit f326c5d

Please sign in to comment.