From de909e717873ab5c487194893fd07c19376ad53d Mon Sep 17 00:00:00 2001 From: eggcar Date: Mon, 6 Jul 2020 10:48:34 +0800 Subject: [PATCH] Fix: Typo in fdb_kv_iterate() 'kv->addr.start == 0' -> 'kv->addr.start = 0' --- 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 4bd038d..da09903 100644 --- a/src/fdb_kvdb.c +++ b/src/fdb_kvdb.c @@ -1670,7 +1670,7 @@ bool fdb_kv_iterate(fdb_kvdb_t db, fdb_kv_iterator_t itr) /** Set kv->addr.start to 0 when we get into a new sector so that if we successfully get the next sector info, * the kv->addr.start is set to the new sector.addr + SECTOR_HDR_DATA_SIZE. */ - kv->addr.start == 0; + kv->addr.start = 0; } while ((itr->sector_addr = get_next_sector_addr(db, §or)) != FAILED_ADDR); /* Finally we have iterated all the KVs. */ return false;