Skip to content

Commit

Permalink
[kvdb] Initialize only status explicitly (armink#267)
Browse files Browse the repository at this point in the history
Co-authored-by: Oleg Hahm <oleg@riot-os.org>
  • Loading branch information
OlegHahm and OlegHahm authored Dec 8, 2023
1 parent 62d927d commit 190646d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fdb_kvdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ static fdb_err_t del_kv(fdb_kvdb_t db, const char *key, fdb_kv_t old_kv, bool co
{
fdb_err_t result = FDB_NO_ERR;
uint32_t dirty_status_addr;
struct fdb_kv kv = { FDB_KV_UNUSED };
struct fdb_kv kv = { .status = FDB_KV_UNUSED };

#if (KV_STATUS_TABLE_SIZE >= FDB_DIRTY_STATUS_TABLE_SIZE)
uint8_t status_table[KV_STATUS_TABLE_SIZE];
Expand Down

0 comments on commit 190646d

Please sign in to comment.