[kvdb] Initialize only status explicitly (#267)

Co-authored-by: Oleg Hahm <oleg@riot-os.org>
This commit is contained in:
Oleg Hahm 2023-12-08 09:40:45 +01:00 committed by GitHub
parent 86f5550e60
commit 0594fdc957
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];