diff --git a/src/fdb.c b/src/fdb.c index 97fc0af..5b066c8 100644 --- a/src/fdb.c +++ b/src/fdb.c @@ -151,4 +151,4 @@ const char *_fdb_db_path(fdb_db_t db) return NULL; #endif } -} \ No newline at end of file +} diff --git a/src/fdb_kvdb.c b/src/fdb_kvdb.c index 132323b..35f90f2 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -914,7 +914,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 = { 0 }; + struct fdb_kv kv = { FDB_KV_UNUSED }; #if (KV_STATUS_TABLE_SIZE >= FDB_DIRTY_STATUS_TABLE_SIZE) uint8_t status_table[KV_STATUS_TABLE_SIZE];