From 190646d30ada769ad7602ca6d983afc3c0fb2cf1 Mon Sep 17 00:00:00 2001 From: Oleg Hahm Date: Fri, 8 Dec 2023 09:40:45 +0100 Subject: [PATCH] [kvdb] Initialize only status explicitly (#267) Co-authored-by: Oleg Hahm --- src/fdb_kvdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index a1118ce..505ba7b 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -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];