Skip to content

Commit

Permalink
[fdb] fix warning (#258)
Browse files Browse the repository at this point in the history
Signed-off-by: FASTSHIFT <vifextech@foxmail.com>
  • Loading branch information
FASTSHIFT authored Nov 12, 2023
1 parent 0d1b438 commit dc6121b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ const char *_fdb_db_path(fdb_db_t db)
return NULL;
#endif
}
}
}
2 changes: 1 addition & 1 deletion src/fdb_kvdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit dc6121b

Please sign in to comment.